X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Fcecc.h;h=050271b6b98dea4bef9564800ab9905249088e93;hb=c7dc6e28e6a7dbbb685b4788fd77774e34196717;hp=5a49b0964c6af013ddaa9d2439b5edb66951cc7b;hpb=b492c10e731625d7c000654de2372b54339f7c8d;p=deb_libcec.git diff --git a/include/cecc.h b/include/cecc.h index 5a49b09..050271b 100644 --- a/include/cecc.h +++ b/include/cecc.h @@ -34,25 +34,24 @@ #ifndef CECEXPORTS_C_H_ #define CECEXPORTS_C_H_ -#include +#include "cectypes.h" #ifdef __cplusplus extern "C" { #endif #ifdef __cplusplus -extern DECLSPEC int cec_init(const char *strDeviceName, CEC::cec_logical_address iLogicalAddress, uint16_t iPhysicalAddress); +extern DECLSPEC int cec_initialise(CEC::libcec_configuration *configuration); #else -extern DECLSPEC int cec_init(const char *strDeviceName, cec_logical_address iLogicalAddress, uint16_t iPhysicalAddress); +extern DECLSPEC int cec_initialise(libcec_configuration *configuration); #endif #ifdef __cplusplus -extern DECLSPEC int cec_init_typed(const char *strDeviceName, CEC::cec_device_type_list devicesTypes); +extern DECLSPEC int cec_init_typed(const char *strDeviceName, CEC::cec_device_type_list deviceTypes); #else -extern DECLSPEC int cec_init_typed(const char *strDeviceName, cec_device_type_list devicesTypes); +extern DECLSPEC int cec_init_typed(const char *strDeviceName, cec_device_type_list deviceTypes); #endif - extern DECLSPEC void cec_destroy(void); extern DECLSPEC int cec_open(const char *strPort, uint32_t iTimeout); @@ -259,6 +258,20 @@ extern DECLSPEC cec_osd_name cec_get_device_osd_name(cec_logical_address iAddres extern DECLSPEC int cec_enable_physical_address_detection(void); +#ifdef __cplusplus +extern DECLSPEC int cec_set_stream_path_logical(CEC::cec_logical_address iAddress); +#else +extern DECLSPEC int cec_set_stream_path_logical(cec_logical_address iAddress); +#endif + +extern DECLSPEC int cec_set_stream_path_physical(uint16_t iPhysicalAddress); + +#ifdef __cplusplus +extern DECLSPEC CEC::cec_logical_addresses cec_get_logical_addresses(void); +#else +extern DECLSPEC cec_logical_addresses cec_get_logical_addresses(void); +#endif + #ifdef __cplusplus }; #endif