X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FLibCEC.h;h=2dca04019fad0f05d6fa65a03b1bf40cee61ec34;hb=5ee2ae29d79824f71b011059d23d4b6e04012c1d;hp=a2ed9ac09bd9e1fde849ecd35211f85773d7b37f;hpb=3efda01ac7b070e09012a5725112eb44c17001b4;p=deb_libcec.git diff --git a/src/lib/LibCEC.h b/src/lib/LibCEC.h index a2ed9ac..2dca040 100644 --- a/src/lib/LibCEC.h +++ b/src/lib/LibCEC.h @@ -107,6 +107,7 @@ namespace CEC virtual bool CanPersistConfiguration(void); virtual bool PersistConfiguration(libcec_configuration *configuration); virtual void RescanActiveDevices(void); + virtual bool IsLibCECActiveSource(void); const char *ToString(const cec_menu_state state); const char *ToString(const cec_version version); @@ -120,6 +121,12 @@ namespace CEC const char *ToString(const cec_vendor_id vendor); const char *ToString(const cec_client_version version); const char *ToString(const cec_server_version version); + + static cec_device_type GetType(cec_logical_address address); + static uint16_t GetMaskForType(cec_logical_address address); + static uint16_t GetMaskForType(cec_device_type type); + + virtual bool GetDeviceInformation(const char *strPort, libcec_configuration *config, uint32_t iTimeoutMs = 10000); //@} static void AddLog(const cec_log_level level, const char *strFormat, ...); @@ -133,11 +140,11 @@ namespace CEC static CLibCEC *GetInstance(void); static void SetInstance(CLibCEC *instance); + CCECProcessor * m_cec; protected: int64_t m_iStartTime; cec_user_control_code m_iCurrentButton; int64_t m_buttontime; - CCECProcessor * m_cec; PLATFORM::SyncedBuffer m_logBuffer; PLATFORM::SyncedBuffer m_keyBuffer; PLATFORM::SyncedBuffer m_commandBuffer;