cec: added the new methods to LibCecSharp
authorLars Op den Kamp <lars.opdenkamp@pulse-eight.com>
Wed, 7 Dec 2011 23:08:02 +0000 (00:08 +0100)
committerLars Op den Kamp <lars.opdenkamp@pulse-eight.com>
Wed, 7 Dec 2011 23:08:02 +0000 (00:08 +0100)
src/LibCecSharp/LibCecSharp.cpp

index 03c0009cea20e7bc51dd1d26449eb1ffac5417dd..021b19a7cb7ba6ed1cc8751a250da9713d1938e5 100644 (file)
@@ -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;
 };