cec: log keypresses in the debug log
[deb_libcec.git] / src / lib / CECProcessor.h
index c1dbfad7382dcdb8c4c749d4af5e643d6692c78b..43b7a30cae32d170893d1b4b1f20ae2285f38a4a 100644 (file)
@@ -32,7 +32,7 @@
  */
 
 #include <string>
-#include <libcec/CECExports.h>
+#include <cectypes.h>
 #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<cec_adapter_message> m_frameBuffer;
       std::string                    m_strDeviceName;