cec: added the new methods to LibCecSharp
[deb_libcec.git] / src / LibCecSharp / LibCecSharp.cpp
index 6e4895e8cbf9119acfac0a25e9152869c4e8de71..021b19a7cb7ba6ed1cc8751a250da9713d1938e5 100644 (file)
@@ -646,9 +646,9 @@ public:
     return m_libCec->IsActiveDeviceType((cec_device_type)type);
   }
 
-  bool SetHDMIPort(uint8_t port)
+  bool SetHDMIPort(CecLogicalAddress address, uint8_t port)
   {
-    return m_libCec->SetHDMIPort(port);
+    return m_libCec->SetHDMIPort((cec_logical_address)address, port);
   }
 
   uint8_t VolumeUp(bool wait)
@@ -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;
 };