signal all waiting threads when receiving an active source message, cache the current...
[deb_libcec.git] / src / lib / devices / CECDeviceMap.h
index 128f574f003dcb38c3a5e3cb97375ea39cafefcd..50271dc04d61576f8827b3cd3f7390dc11a7112c 100644 (file)
@@ -31,7 +31,6 @@
  *     http://www.pulse-eight.net/
  */
 
-#include "../../../include/cectypes.h"
 #include <map>
 #include <vector>
 
@@ -63,6 +62,10 @@ namespace CEC
     void GetByLogicalAddresses(CECDEVICEVEC &devices, const cec_logical_addresses &addresses);
     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;
   };
 }