X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Fcec.h;h=8570220e1800220829ee084792f7ef4dc352fab4;hb=e7fd53c8e125db215629cdc557c45e2e875d02cc;hp=02450331d43c0e365ab32eed44a6e5bbc62e1ca1;hpb=ab2ab9ee1ac85713acdd5c29f1c35a5992fae214;p=deb_libcec.git diff --git a/include/cec.h b/include/cec.h index 0245033..8570220 100644 --- a/include/cec.h +++ b/include/cec.h @@ -72,6 +72,7 @@ namespace CEC virtual void Close(void) = 0; /*! + * @deprecated Use DetectAdapters() instead * @brief Try to find all connected CEC adapters. * @param deviceList The vector to store device descriptors in. * @param iBufSize The size of the deviceList buffer. @@ -446,6 +447,16 @@ namespace CEC * @return The current audio status, or cec_audio_status if unknown. */ virtual uint8_t AudioStatus(void) = 0; + + /*! + * @brief Try to find all connected CEC adapters. + * @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. + * @return The number of devices that were found, or -1 when an error occured. + */ + virtual int8_t DetectAdapters(cec_adapter_descriptor *deviceList, uint8_t iBufSize, const char *strDevicePath = NULL) = 0; + }; };