X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FCECProcessor.h;h=43b7a30cae32d170893d1b4b1f20ae2285f38a4a;hb=3cf3a86ea90fed1cdfeb1d31720677b14a1fc44b;hp=c1dbfad7382dcdb8c4c749d4af5e643d6692c78b;hpb=acec5f4851b1930cafb6ddc044131204a017401e;p=deb_libcec.git diff --git a/src/lib/CECProcessor.h b/src/lib/CECProcessor.h index c1dbfad..43b7a30 100644 --- a/src/lib/CECProcessor.h +++ b/src/lib/CECProcessor.h @@ -32,7 +32,7 @@ */ #include -#include +#include #include "platform/threads.h" #include "util/buffer.h" @@ -58,6 +58,7 @@ 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); static const char *CECVendorIdToString(const uint64_t iVendorId); @@ -75,12 +76,12 @@ namespace CEC private: void LogOutput(const cec_command &data); bool WaitForAck(bool *bError, uint32_t iTimeout = 1000); - bool ParseMessage(cec_adapter_message &msg); + void ParseMessage(cec_adapter_message &msg, bool *bError, bool *bTransmitSucceeded, bool *bEom, bool bProcessMessages = true); void ParseCommand(cec_command &command); 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;