X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Fcec.h;h=0332088906e72a0a5c254ec42b023251aa02e00e;hb=0cb55c432789659fefd308739ca247385157a4a6;hp=a3a674e4bad62d1ffe246b57b536818f99d172d3;hpb=dc2c98f66b29c8be6bc342cf24c9f7a9091e66ab;p=deb_libcec.git diff --git a/include/cec.h b/include/cec.h index a3a674e..0332088 100644 --- a/include/cec.h +++ b/include/cec.h @@ -419,6 +419,11 @@ namespace CEC * @brief Tell libCEC to poll for active devices on the bus. */ virtual void RescanActiveDevices(void) = 0; + + /*! + * @return true when libCEC is the active source on the bus, false otherwise. + */ + virtual bool IsLibCECActiveSource(void) = 0; }; }; @@ -438,6 +443,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. */