X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FCECProcessor.h;h=b73b1bbb0995f5c439cf38d90de35e072b9b6cd4;hb=18203d17e6894d33725dac7553d981aee735e6be;hp=ef4c5195bdac933d9d3d5fc9816bf225afbe03b5;hpb=315ff809364552f6faee215b56ecacb2efaea8e4;p=deb_libcec.git diff --git a/src/lib/CECProcessor.h b/src/lib/CECProcessor.h index ef4c519..b73b1bb 100644 --- a/src/lib/CECProcessor.h +++ b/src/lib/CECProcessor.h @@ -56,20 +56,24 @@ namespace CEC virtual bool Start(void); virtual void *Process(void); - virtual bool IsMonitoring(void) const { return m_bMonitor; } - virtual cec_version GetDeviceCecVersion(cec_logical_address iAddress); - virtual bool GetDeviceMenuLanguage(cec_logical_address iAddress, cec_menu_language *language); - virtual const std::string & GetDeviceName(void) { return m_strDeviceName; } - virtual uint64_t GetDeviceVendorId(cec_logical_address iAddress); - virtual cec_power_status GetDevicePowerStatus(cec_logical_address iAddress); - virtual cec_logical_address GetLogicalAddress(void) const { return m_logicalAddresses.primary; } - virtual bool HasLogicalAddress(cec_logical_address address) const { return m_logicalAddresses.isset(address); } - virtual uint16_t GetPhysicalAddress(void) const; + virtual bool IsMonitoring(void) const { return m_bMonitor; } + virtual CCECBusDevice * GetDeviceByPhysicalAddress(uint16_t iPhysicalAddress) const; + virtual cec_version GetDeviceCecVersion(cec_logical_address iAddress); + virtual bool GetDeviceMenuLanguage(cec_logical_address iAddress, cec_menu_language *language); + virtual const std::string & GetDeviceName(void) { return m_strDeviceName; } + virtual uint64_t GetDeviceVendorId(cec_logical_address iAddress); + virtual cec_power_status GetDevicePowerStatus(cec_logical_address iAddress); + virtual cec_logical_address GetLogicalAddress(void) const { return m_logicalAddresses.primary; } + virtual cec_logical_addresses GetLogicalAddresses(void) const { return m_logicalAddresses; } + virtual bool HasLogicalAddress(cec_logical_address address) const { return m_logicalAddresses.isset(address); } + virtual uint16_t GetPhysicalAddress(void) const; virtual bool SetActiveView(void); + virtual bool SetActiveSource(cec_device_type type = CEC_DEVICE_TYPE_RESERVED); virtual bool SetInactiveView(void); virtual bool SetLogicalAddress(cec_logical_address iLogicalAddress); virtual bool SetPhysicalAddress(uint16_t iPhysicalAddress); + virtual bool SetStreamPath(uint16_t iStreamPath); virtual bool SwitchMonitoring(bool bEnable); virtual bool PollDevice(cec_logical_address iAddress); @@ -88,7 +92,7 @@ namespace CEC CCECBusDevice *m_busDevices[16]; private: - bool TryLogicalAddress(cec_logical_address address, const char *strLabel, unsigned int iIndex); + bool TryLogicalAddress(cec_logical_address address, unsigned int iIndex); bool FindLogicalAddressRecordingDevice(unsigned int iIndex); bool FindLogicalAddressTuner(unsigned int iIndex); bool FindLogicalAddressPlaybackDevice(unsigned int iIndex); @@ -110,5 +114,6 @@ namespace CEC CAdapterCommunication* m_communication; CLibCEC* m_controller; bool m_bMonitor; + CecBuffer m_commandBuffer; }; };