cec: fixed - use the correct source device for broadcasts
[deb_libcec.git] / src / lib / implementations / CECCommandHandler.h
index 7129b400793ed473769f9b36b4c6be24799d16c4..0da4dede4cc27b9748b99497b2af9fbd85344595 100644 (file)
@@ -44,6 +44,7 @@ namespace CEC
     virtual ~CCECCommandHandler(void) {};
 
     virtual bool HandleCommand(const cec_command &command);
+    virtual cec_vendor_id GetVendorId(void) { return CEC_VENDOR_UNKNOWN; };
 
   protected:
     bool HandleDeviceVendorCommandWithId(const cec_command &command);
@@ -62,6 +63,8 @@ namespace CEC
     bool HandleUserControlRelease(const cec_command &command);
     void UnhandledCommand(const cec_command &command);
 
+    CCECBusDevice *GetDevice(cec_logical_address iLogicalAddress) const;
+    CCECBusDevice *GetThisDevice(void) const;
     CCECBusDevice *m_busDevice;
   };
 };