X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fcecc.h;h=a720e7f9733924bffd755ae1f0dfd499955a984a;hb=610647374e568337e7d79b99c102dea370dde52c;hp=5a49b0964c6af013ddaa9d2439b5edb66951cc7b;hpb=b492c10e731625d7c000654de2372b54339f7c8d;p=deb_libcec.git diff --git a/include/cecc.h b/include/cecc.h index 5a49b09..a720e7f 100644 --- a/include/cecc.h +++ b/include/cecc.h @@ -34,25 +34,18 @@ #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); -#else -extern DECLSPEC int cec_init(const char *strDeviceName, cec_logical_address iLogicalAddress, uint16_t iPhysicalAddress); -#endif - #ifdef __cplusplus extern DECLSPEC int cec_init_typed(const char *strDeviceName, CEC::cec_device_type_list devicesTypes); #else extern DECLSPEC int cec_init_typed(const char *strDeviceName, cec_device_type_list devicesTypes); #endif - extern DECLSPEC void cec_destroy(void); extern DECLSPEC int cec_open(const char *strPort, uint32_t iTimeout); @@ -259,6 +252,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