X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FCECProcessor.h;h=e2705fd007c1853aa6e31a12789cf25983157f48;hb=994dbaaa5c1f32810f3b4266caf5d6dd72e21718;hp=e039ce49707d47c9a10c900539f1274ecea0915b;hpb=5c73f7f744d83cb19d23d1a0f66597cdc3cfd5f3;p=deb_libcec.git diff --git a/src/lib/CECProcessor.h b/src/lib/CECProcessor.h index e039ce4..e2705fd 100644 --- a/src/lib/CECProcessor.h +++ b/src/lib/CECProcessor.h @@ -59,6 +59,7 @@ namespace CEC virtual bool IsMonitoring(void) const { return m_bMonitor; } virtual CCECBusDevice * GetDeviceByPhysicalAddress(uint16_t iPhysicalAddress, bool bRefresh = false) const; virtual CCECBusDevice * GetDeviceByType(cec_device_type type) const; + virtual CCECBusDevice * GetPrimaryDevice(void) const; virtual cec_version GetDeviceCecVersion(cec_logical_address iAddress); virtual bool GetDeviceMenuLanguage(cec_logical_address iAddress, cec_menu_language *language); virtual const std::string & GetDeviceName(void) { return m_strDeviceName; } @@ -93,8 +94,8 @@ namespace CEC virtual uint8_t VolumeUp(bool bSendRelease = true); virtual uint8_t VolumeDown(bool bSendRelease = true); virtual uint8_t MuteAudio(bool bSendRelease = true); - virtual bool TransmitKeypress(cec_logical_address iDestination, cec_user_control_code key); - virtual bool TransmitKeyRelease(cec_logical_address iDestination); + virtual bool TransmitKeypress(cec_logical_address iDestination, cec_user_control_code key, bool bWait = true); + virtual bool TransmitKeyRelease(cec_logical_address iDestination, bool bWait = true); virtual bool EnablePhysicalAddressDetection(void) { return false; }; void SetStandardLineTimeout(uint8_t iTimeout); void SetRetryLineTimeout(uint8_t iTimeout);