signal all waiting threads when receiving an active source message, cache the current...
[deb_libcec.git] / src / lib / devices / CECDeviceMap.h
index c27a2dd57e533df3e631fa3b1e4c0b67b18c57c1..50271dc04d61576f8827b3cd3f7390dc11a7112c 100644 (file)
@@ -63,6 +63,9 @@ namespace CEC
     void GetActive(CECDEVICEVEC &devices) const;
     void GetByType(const cec_device_type type, CECDEVICEVEC &devices) const;
     void GetChildrenOf(CECDEVICEVEC& devices, CCECBusDevice* device) const;
+    void SetActiveSource(uint16_t iPhysicalAddress);
+    uint16_t GetActiveSourceAddress(void) const;
+    void SignalAll(cec_opcode opcode);
 
     void GetPowerOffDevices(const libcec_configuration &configuration, CECDEVICEVEC &devices) const;
     void GetWakeDevices(const libcec_configuration &configuration, CECDEVICEVEC &devices) const;
@@ -79,5 +82,6 @@ namespace CEC
 
     CECDEVICEMAP   m_busDevices;
     CCECProcessor *m_processor;
+    uint16_t       m_iActiveSource;
   };
 }