cec: renamed GetOSDName() -> GetDeviceOSDName()
[deb_libcec.git] / src / LibCecSharp / LibCecSharp.cpp
index 6e4895e8cbf9119acfac0a25e9152869c4e8de71..673739a71d9e4ea1affcadabfa5058ad5b69dca9 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)
@@ -676,12 +676,22 @@ public:
     return m_libCec->SendKeyRelease((cec_logical_address)destination, wait);
   }
 
-  String ^ GetOSDName(CecLogicalAddress logicalAddress)
+  String ^ GetDeviceOSDName(CecLogicalAddress logicalAddress)
   {
-    cec_osd_name osd = m_libCec->GetOSDName((cec_logical_address) logicalAddress);
+    cec_osd_name osd = m_libCec->GetDeviceOSDName((cec_logical_address) logicalAddress);
     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;
 };