X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FCECProcessor.cpp;h=38eb5cdce7cd55631c2e44f7ef7487ae344b1e2a;hb=e55f3f703996f8c347db3fe2442893163f5523b7;hp=3fb3bc299a3a5782fb2699293a4b982b12ad5e60;hpb=cd505625984870e36f98323209d3c2d7273e3266;p=deb_libcec.git diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index 3fb3bc2..38eb5cd 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -202,6 +202,27 @@ bool CCECProcessor::SwitchMonitoring(bool bEnable) return m_communication && m_communication->SetAckMask(0x1 << (uint8_t)m_iLogicalAddress); } +cec_version CCECProcessor::GetDeviceCecVersion(cec_logical_address iAddress) +{ + return m_busDevices[iAddress]->GetCecVersion(); +} + +bool CCECProcessor::GetDeviceMenuLanguage(cec_logical_address iAddress, cec_menu_language *language) +{ + *language = m_busDevices[iAddress]->GetMenuLanguage(); + 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);