X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Fcec.h;h=9e09902fe01aa1e676dcec72f1687846f7c395eb;hb=b2f0b1abed1a76ec1cf2687924f5c60cab2a5316;hp=61e4bb315b50668bf1f68bd19b2aae18c440533c;hpb=5c73f7f744d83cb19d23d1a0f66597cdc3cfd5f3;p=deb_libcec.git diff --git a/include/cec.h b/include/cec.h index 61e4bb3..9e09902 100644 --- a/include/cec.h +++ b/include/cec.h @@ -59,7 +59,15 @@ namespace CEC virtual void Close(void) = 0; /*! - * @brief Try to find all connected CEC adapters. Only implemented on Linux at the moment. + * @brief Set and enable the callback methods. If this method is not called, the GetNext...() methods will have to be used. + * @param cbParam Parameter to pass to callback methods. + * @param callbacks The callbacks to set. + * @return True when enabled, false otherwise. + */ + virtual bool EnableCallbacks(void *cbParam, ICECCallbacks *callbacks) = 0; + + /*! + * @brief Try to find all connected CEC adapters. Only implemented on Linux and Windows at the moment. * @param deviceList The vector to store device descriptors in. * @param iBufSize The size of the deviceList buffer. * @param strDevicePath Optional device path. Only adds device descriptors that match the given device path. @@ -352,7 +360,6 @@ namespace CEC virtual const char *ToString(const cec_system_audio_status mode) = 0; virtual const char *ToString(const cec_audio_status status) = 0; virtual const char *ToString(const cec_vendor_id vendor) = 0; - }; };