X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FCECProcessor.h;h=4e9d1115c475aba934769702b5dc650ce63db0b1;hb=e36035adeeab088655508cf6c2aa492e8eea7cc3;hp=8617257f30437a3236c32cd613a2a6a89ed997b6;hpb=78e8010a91b23bd33c547937870d3240c641815f;p=deb_libcec.git diff --git a/src/lib/CECProcessor.h b/src/lib/CECProcessor.h index 8617257..4e9d111 100644 --- a/src/lib/CECProcessor.h +++ b/src/lib/CECProcessor.h @@ -58,6 +58,9 @@ namespace CEC virtual bool SetInactiveView(void); virtual bool Transmit(const cec_command &data, bool bWaitForAck = true); virtual bool SetLogicalAddress(cec_logical_address iLogicalAddress); + virtual bool SetPhysicalAddress(uint16_t iPhysicalAddress); + virtual bool SetOSDString(cec_logical_address iLogicalAddress, cec_display_control duration, const char *strMessage); + virtual bool SwitchMonitoring(bool bEnable); static const char *CECVendorIdToString(const uint64_t iVendorId); @@ -71,6 +74,9 @@ namespace CEC virtual void ReportOSDName(cec_logical_address address = CECDEVICE_TV); virtual void ReportPhysicalAddress(void); virtual void BroadcastActiveSource(void); + virtual bool HandleANCommand(cec_command &command); + virtual bool HandleSLCommand(cec_command &command); + virtual bool HandleCecCommand(cec_command &command); private: void LogOutput(const cec_command &data); @@ -80,7 +86,7 @@ namespace CEC void ParseVendorId(cec_logical_address device, const cec_datapacket &data); cec_command m_currentframe; - uint16_t m_physicaladdress; + uint16_t m_iPhysicalAddress; cec_logical_address m_iLogicalAddress; CecBuffer m_frameBuffer; std::string m_strDeviceName; @@ -89,5 +95,6 @@ namespace CEC CLibCEC *m_controller; uint64_t m_vendorIds[16]; uint8_t m_vendorClasses[16]; + bool m_bMonitor; }; };