X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2FCECExportsC.h;h=d03bfe0b2d77fd3262cf851caa3a7a799202d7e7;hb=5f39c4d854ec7441761bc6db870b6bbc73016309;hp=f76e2f39f4e23510ff6115195e64b6c378246472;hpb=8148859ed1d46a20c30a953db91ccbbd127c85e9;p=deb_libcec.git diff --git a/include/CECExportsC.h b/include/CECExportsC.h index f76e2f3..d03bfe0 100644 --- a/include/CECExportsC.h +++ b/include/CECExportsC.h @@ -45,13 +45,17 @@ extern "C" { * @param iPhysicalAddress The physical address of this device. 0x1000 by default. * @return True when initialised, false otherwise. */ - #ifdef __cplusplus extern DECLSPEC bool cec_init(const char *strDeviceName, CEC::cec_logical_address iLogicalAddress = CEC::CECDEVICE_PLAYBACKDEVICE1, int iPhysicalAddress = CEC_DEFAULT_PHYSICAL_ADDRESS); #else extern DECLSPEC bool cec_init(const char *strDeviceName, cec_logical_address iLogicalAddress = CECDEVICE_PLAYBACKDEVICE1, int iPhysicalAddress = CEC_DEFAULT_PHYSICAL_ADDRESS); #endif +/*! + * @brief Unload the CEC adapter library. + */ +extern DECLSPEC void cec_destroy(void); + /*! * @brief Open a connection to the CEC adapter. * @param strPort The path to the port. @@ -62,9 +66,8 @@ extern DECLSPEC bool cec_open(const char *strPort, int iTimeout); /*! * @brief Close the connection to the CEC adapter. - * @param iTimeout Timeout in ms */ -extern DECLSPEC bool cec_close(int iTimeout); +extern DECLSPEC void cec_close(void); /*! * @brief Ping the CEC adapter. @@ -158,13 +161,12 @@ extern DECLSPEC bool cec_get_next_command(cec_command *command); * @brief Transmit a frame on the CEC line. * @param data The frame to send. * @param bWaitForAck Wait for an ACK message for 1 second after this frame has been sent. - * @param iTimeout Timeout if the message could not be sent for this amount of ms. Does not influence the timeout of the wait for the ACK message. That timeout is specified by the CEC standard. * @return True when the data was sent and acked, false otherwise. */ #ifdef __cplusplus -extern DECLSPEC bool cec_transmit(const CEC::cec_frame &data, bool bWaitForAck = true, int64_t iTimeout = (int64_t) 5000); +extern DECLSPEC bool cec_transmit(const CEC::cec_frame &data, bool bWaitForAck = true); #else -extern DECLSPEC bool cec_transmit(const cec_frame &data, bool bWaitForAck = true, int64_t iTimeout = (int64_t) 5000); +extern DECLSPEC bool cec_transmit(const cec_frame &data, bool bWaitForAck = true); #endif /*!