From: Lars Op den Kamp Date: Wed, 7 Dec 2011 23:08:02 +0000 (+0100) Subject: cec: added the new methods to LibCecSharp X-Git-Tag: upstream/2.2.0~1^2~44^2~14 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6c3c8d5aee5542ba00a73ff4db9709e8d5324024;p=deb_libcec.git cec: added the new methods to LibCecSharp --- 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; };