X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Fcec.h;h=0e463eb91fb4a88359f0a3b723dcc90681b81ac6;hb=fa4798bd538f6114390884ad6f2f9c44c9f77e09;hp=61e4bb315b50668bf1f68bd19b2aae18c440533c;hpb=7b494bea6f0eefd2d10306492d5c191ab378e8a7;p=deb_libcec.git diff --git a/include/cec.h b/include/cec.h index 61e4bb3..0e463eb 100644 --- a/include/cec.h +++ b/include/cec.h @@ -59,7 +59,14 @@ 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 callbacks The callbacks to set. + * @return True when enabled, false otherwise. + */ + virtual bool EnableCallbacks(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 +359,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; - }; };