cec: added GetDevicePowerStatus()/cec_get_device_power_status()
[deb_libcec.git] / src / lib / CECProcessor.cpp
index 279c79ff5dbc9535ad038fa3facf31c65cb19e2f..38eb5cdce7cd55631c2e44f7ef7487ae344b1e2a 100644 (file)
@@ -213,6 +213,16 @@ bool CCECProcessor::GetDeviceMenuLanguage(cec_logical_address iAddress, cec_menu
   return (strcmp(language->language, "???"));
 }
 
+uint64_t CCECProcessor::GetDeviceVendorId(cec_logical_address iAddress)
+{
+  return m_busDevices[iAddress]->GetVendorId();
+}
+
+cec_power_status CCECProcessor::GetDevicePowerStatus(cec_logical_address iAddress)
+{
+  return m_busDevices[iAddress]->GetPowerStatus();
+}
+
 bool CCECProcessor::Transmit(const cec_command &data)
 {
   bool bReturn(false);