X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2FCECExportsC.h;h=359b0e6d7a8431e552e49ad715dd6ac3eec932c8;hb=ddb76c470aa282f59064c8e2ffe20a0785463167;hp=61cabd2bd4e18fee19588af863c5e3f67b8e6e75;hpb=2abe74ebbd27d8c30060b3eebb363e10d3fbfd80;p=deb_libcec.git diff --git a/include/CECExportsC.h b/include/CECExportsC.h index 61cabd2..359b0e6 100644 --- a/include/CECExportsC.h +++ b/include/CECExportsC.h @@ -46,9 +46,9 @@ extern "C" { * @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); +extern DECLSPEC bool cec_init(const char *strDeviceName, CEC::cec_logical_address iLogicalAddress = CEC::CECDEVICE_PLAYBACKDEVICE1, uint16_t 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); +extern DECLSPEC bool cec_init(const char *strDeviceName, cec_logical_address iLogicalAddress = CECDEVICE_PLAYBACKDEVICE1, uint16_t iPhysicalAddress = CEC_DEFAULT_PHYSICAL_ADDRESS); #endif /*! @@ -62,7 +62,7 @@ extern DECLSPEC void cec_destroy(void); * @param iTimeout Connection timeout in ms. * @return True when connected, false otherwise. */ -extern DECLSPEC bool cec_open(const char *strPort, int iTimeout); +extern DECLSPEC bool cec_open(const char *strPort, uint32_t iTimeout); /*! * @brief Close the connection to the CEC adapter. @@ -76,9 +76,9 @@ extern DECLSPEC void cec_close(void); * @return The number of devices that were found, or -1 when an error occured. */ #ifdef __cplusplus -extern DECLSPEC int cec_find_adapters(std::vector &deviceList, const char *strDevicePath = NULL); +extern DECLSPEC int8_t cec_find_adapters(CEC::cec_adapter *deviceList, uint8_t iBufSize, const char *strDevicePath = NULL); #else -extern DECLSPEC int cec_find_adapters(std::vector &deviceList, const char *strDevicePath = NULL); +extern DECLSPEC int8_t cec_find_adapters(cec_adapter *deviceList, uint8_t iBufSize, const char *strDevicePath = NULL); #endif /*! @@ -96,12 +96,12 @@ extern DECLSPEC bool cec_start_bootloader(void); /*! * @return Get the minimal version of libcec that this version of libcec can interface with. */ -extern DECLSPEC int cec_get_min_version(void); +extern DECLSPEC int8_t cec_get_min_version(void); /*! * @return Get the version of libcec. */ -extern DECLSPEC int cec_get_lib_version(void); +extern DECLSPEC int8_t cec_get_lib_version(void); /*! * @brief Power on the connected CEC capable devices. @@ -177,9 +177,9 @@ extern DECLSPEC bool cec_get_next_command(cec_command *command); * @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); +extern DECLSPEC bool cec_transmit(const CEC::cec_command &data, bool bWaitForAck = true); #else -extern DECLSPEC bool cec_transmit(const cec_frame &data, bool bWaitForAck = true); +extern DECLSPEC bool cec_transmit(const cec_command &data, bool bWaitForAck = true); #endif /*!