X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FCECCommandHandler.h;h=3a9bd6f1a3370bcc367bb611183cc2d6f9f691b2;hb=42d28d15d07f893b491051970ade1bd56bb596eb;hp=be1f6436ad8f64636c346c9a20a7966bdf13d0be;hpb=5734016c1b1e932c19a85bb671211c4967399f8c;p=deb_libcec.git diff --git a/src/lib/implementations/CECCommandHandler.h b/src/lib/implementations/CECCommandHandler.h index be1f643..3a9bd6f 100644 --- a/src/lib/implementations/CECCommandHandler.h +++ b/src/lib/implementations/CECCommandHandler.h @@ -77,7 +77,7 @@ namespace CEC m_waitingFor.clear(); } - bool Wait(cec_opcode opcode, uint32_t iTimeout = 2000) + bool Wait(cec_opcode opcode, uint32_t iTimeout = CEC_DEFAULT_TRANSMIT_WAIT) { CResponse *response = GetEvent(opcode); return response ? response->Wait(iTimeout) : false; @@ -162,6 +162,10 @@ namespace CEC virtual void SignalOpcode(cec_opcode opcode); + virtual bool ActiveSourcePending(void); + virtual bool SupportsDeviceType(const cec_device_type UNUSED(type)) const { return true; }; + cec_device_type GetReplacementDeviceType(const cec_device_type type) const { return type; } + protected: virtual bool HandleActiveSource(const cec_command &command); virtual bool HandleDeckControl(const cec_command &command); @@ -203,7 +207,6 @@ namespace CEC virtual size_t GetMyDevices(std::vector &devices) const; virtual CCECBusDevice *GetDevice(cec_logical_address iLogicalAddress) const; virtual CCECBusDevice *GetDeviceByPhysicalAddress(uint16_t iPhysicalAddress) const; - virtual CCECBusDevice *GetDeviceByType(cec_device_type type) const; virtual bool SetVendorId(const cec_command &command); virtual void SetPhysicalAddress(cec_logical_address iAddress, uint16_t iNewAddress); @@ -219,5 +222,7 @@ namespace CEC bool m_bOPTSendDeckStatusUpdateOnActiveSource; cec_vendor_id m_vendorId; CWaitForResponse *m_waitForResponse; + bool m_bActiveSourcePending; + PLATFORM::CMutex m_mutex; }; };