X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Fcec.h;h=f5e75903149cdc91aa87a5a23aeebeb06bdb3b90;hb=e00dbf3a30a8514cbe941068aa9593978aa0dfc2;hp=de7129de31b180ad5d57a2df083ed6e9e457f80c;hpb=b0cb809dc62bb0bbc6531018a87a19fbc11d9220;p=deb_libcec.git diff --git a/include/cec.h b/include/cec.h index de7129d..f5e7590 100644 --- a/include/cec.h +++ b/include/cec.h @@ -36,7 +36,7 @@ #include "cectypes.h" -#define LIBCEC_VERSION_CURRENT CEC_SERVER_VERSION_1_7_1 +#define LIBCEC_VERSION_CURRENT CEC_SERVER_VERSION_1_9_0 namespace CEC { @@ -482,6 +482,26 @@ namespace CEC */ virtual uint16_t GetDevicePhysicalAddress(cec_logical_address iLogicalAddress) = 0; #endif + + /*! + * @return A string with information about how libCEC was compiled. + */ + virtual const char *GetLibInfo(void) = 0; + + virtual const char *ToString(const cec_user_control_code key) = 0; + + /*! + * @brief Calling this method will initialise the host on which libCEC is running. + * Calling this method will initialise the host on which libCEC is running. On the RPi, it calls + * bcm_host_init(), which may only be called once per process, and is called by any process using + * the video api on that system. So only call this method if libCEC is used in an application that + * does not already initialise the video api. + * + * Should be called as first call to libCEC, directly after CECInitialise() and before using Open() + */ + virtual void InitVideoStandalone(void) = 0; + + virtual const char *ToString(const cec_adapter_type type) = 0; }; };