X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Fcecc.h;h=072678bac2c6de86b4834703fdc2bc1d632ea13b;hb=7bdfd76c3fd005de0f8ac49e9f3879c018a9e518;hp=dc4b7953e0484c4b773cef9951f5af5bdd3bd250;hpb=f42d3e0fb1f63456b87232019d9cce731acad640;p=deb_libcec.git diff --git a/include/cecc.h b/include/cecc.h index dc4b795..072678b 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(const 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(const 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); @@ -267,6 +266,32 @@ extern DECLSPEC int cec_set_stream_path_logical(cec_logical_address iAddress); 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 +extern DECLSPEC int cec_get_current_configuration(CEC::libcec_configuration *configuration); +#else +extern DECLSPEC int cec_get_current_configuration(libcec_configuration *configuration); +#endif + +extern DECLSPEC int cec_can_persist_configuration(void); + +#ifdef __cplusplus +extern DECLSPEC int cec_persist_configuration(CEC::libcec_configuration *configuration); +#else +extern DECLSPEC int cec_persist_configuration(libcec_configuration *configuration); +#endif + +#ifdef __cplusplus +extern DECLSPEC int cec_set_configuration(const CEC::libcec_configuration *configuration); +#else +extern DECLSPEC int cec_set_configuration(const libcec_configuration *configuration); +#endif + #ifdef __cplusplus }; #endif