cec: couple of cleanups. don't refresh the vendorid when not needed. refresh the...
[deb_libcec.git] / src / LibCecSharp / LibCecSharp.cpp
index 6e4895e8cbf9119acfac0a25e9152869c4e8de71..707248a920a3e1464ee22ec6d679b93c979463c1 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)
@@ -666,14 +666,14 @@ public:
     return m_libCec->MuteAudio(wait);
   }
 
-  bool SendKeypress(CecLogicalAddress destination, CecUserControlCode key, bool wait)
+  bool TransmitKeypress(CecLogicalAddress destination, CecUserControlCode key, bool wait)
   {
-    return m_libCec->SendKeypress((cec_logical_address)destination, (cec_user_control_code)key, wait);
+    return m_libCec->TransmitKeypress((cec_logical_address)destination, (cec_user_control_code)key, wait);
   }
 
-  bool SendKeyRelease(CecLogicalAddress destination, bool wait)
+  bool TransmitKeyRelease(CecLogicalAddress destination, bool wait)
   {
-    return m_libCec->SendKeyRelease((cec_logical_address)destination, wait);
+    return m_libCec->TransmitKeyRelease((cec_logical_address)destination, wait);
   }
 
   String ^ GetOSDName(CecLogicalAddress logicalAddress)