cec: buffer up commands that are received while waiting for an ack. only send 'active...
[deb_libcec.git] / src / lib / implementations / CECCommandHandler.h
index 3a80f463823ca1d3ab9d17240d4d5c4181b42375..524fdc2af5e2215aba6a1727423193097f9de4df 100644 (file)
@@ -32,6 +32,7 @@
  */
 
 #include <cectypes.h>
+#include <vector>
 
 namespace CEC
 {
@@ -46,6 +47,8 @@ namespace CEC
     virtual bool HandleCommand(const cec_command &command);
     virtual cec_vendor_id GetVendorId(void) { return CEC_VENDOR_UNKNOWN; };
 
+    static const char* ToString(const cec_opcode opcode);
+
   protected:
     virtual bool HandleDeviceCecVersion(const cec_command &command);
     virtual bool HandleDeviceVendorCommandWithId(const cec_command &command);
@@ -69,11 +72,10 @@ namespace CEC
     virtual bool HandleUserControlRelease(const cec_command &command);
     virtual void UnhandledCommand(const cec_command &command);
 
+    virtual unsigned int GetMyDevices(std::vector<CCECBusDevice *> &devices) const;
     virtual CCECBusDevice *GetDevice(cec_logical_address iLogicalAddress) const;
     virtual CCECBusDevice *GetDeviceByPhysicalAddress(uint16_t iPhysicalAddress) const;
 
-    static const char* ToString(const cec_opcode opcode);
-
     virtual void SetVendorId(const cec_command &command);
     CCECBusDevice *m_busDevice;
   };