X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Fcec.h;h=20e103b87806b966e403b22e7d06381c2f2b4592;hb=1bfdc9bd15dc0056dedac3e9425edd4b2d25a96a;hp=4a6ad989e7ef84042c2d47928cffda86e1b77124;hpb=c9549d3519b254239eac22685ea22d81ffa00761;p=deb_libcec.git diff --git a/include/cec.h b/include/cec.h index 4a6ad98..20e103b 100644 --- a/include/cec.h +++ b/include/cec.h @@ -424,6 +424,15 @@ namespace CEC * @return true when libCEC is the active source on the bus, false otherwise. */ virtual bool IsLibCECActiveSource(void) = 0; + + /*! + * @brief Get information about the given device + * @param strPort The port to which the device is connected + * @param config The device configuration + * @param iTimeoutMs The timeout in milliseconds + * @return True when the device was found, false otherwise + */ + virtual bool GetDeviceInformation(const char *strPort, libcec_configuration *config, uint32_t iTimeoutMs = 10000) = 0; }; }; @@ -443,6 +452,12 @@ extern "C" DECLSPEC void * CECInit(const char *strDeviceName, CEC::cec_device_ty */ extern "C" DECLSPEC void * CECInitialise(CEC::libcec_configuration *configuration); +/*! + * @brief Try to connect to the adapter and send the "start bootloader" command, without initialising libCEC and going through all checks + * @return True when the command was send, false otherwise. + */ +extern "C" DECLSPEC bool CECStartBootloader(void); + /*! * @brief Unload the CEC adapter library. */