From 6c3c8d5aee5542ba00a73ff4db9709e8d5324024 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Thu, 8 Dec 2011 00:08:02 +0100 Subject: [PATCH] cec: added the new methods to LibCecSharp --- src/LibCecSharp/LibCecSharp.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/LibCecSharp/LibCecSharp.cpp b/src/LibCecSharp/LibCecSharp.cpp index 03c0009..021b19a 100644 --- a/src/LibCecSharp/LibCecSharp.cpp +++ b/src/LibCecSharp/LibCecSharp.cpp @@ -682,6 +682,16 @@ public: return gcnew String(osd.name); } + CecLogicalAddress GetActiveSource() + { + return (CecLogicalAddress)m_libCec->GetActiveSource(); + } + + bool IsActiveSource(CecLogicalAddress logicalAddress) + { + return m_libCec->IsActiveSource((cec_logical_address)logicalAddress); + } + private: ICECAdapter *m_libCec; }; -- 2.34.1