X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2FCECExportsC.h;h=d1987cb18720233b064ef474976b88e74a6107cd;hb=2b32d0ab4a65fd7ac86072285e87972e1131b98a;hp=2a6b6146c9c94d25162d7d6c40396d3d0ca3499e;hpb=2b4d8297d88c0676392e8b3c9c3e3d7ef3e80408;p=deb_libcec.git diff --git a/include/CECExportsC.h b/include/CECExportsC.h index 2a6b614..d1987cb 100644 --- a/include/CECExportsC.h +++ b/include/CECExportsC.h @@ -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, uint64_t 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.