3 * This file is part of the libCEC(R) library.
5 * libCEC(R) is Copyright (C) 2011-2013 Pulse-Eight Limited. All rights reserved.
6 * libCEC(R) is an original work, containing original code.
8 * libCEC(R) is a trademark of Pulse-Eight Limited.
10 * This program is dual-licensed; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 * Alternatively, you can license this library under a commercial license,
26 * please contact Pulse-Eight Licensing for more information.
28 * For more information contact:
29 * Pulse-Eight Licensing <license@pulse-eight.com>
30 * http://www.pulse-eight.com/
31 * http://www.pulse-eight.net/
34 #ifndef CECEXPORTS_C_H_
35 #define CECEXPORTS_C_H_
44 extern DECLSPEC
int cec_initialise(CEC::libcec_configuration
*configuration
);
46 extern DECLSPEC
int cec_initialise(libcec_configuration
*configuration
);
49 extern DECLSPEC
void cec_destroy(void);
51 extern DECLSPEC
int cec_open(const char *strPort
, uint32_t iTimeout
);
53 extern DECLSPEC
void cec_close(void);
56 extern DECLSPEC
int cec_enable_callbacks(void *cbParam
, CEC::ICECCallbacks
*callbacks
);
58 extern DECLSPEC
int cec_enable_callbacks(void *cbParam
, ICECCallbacks
*callbacks
);
62 extern DECLSPEC
int8_t cec_find_adapters(CEC::cec_adapter
*deviceList
, uint8_t iBufSize
, const char *strDevicePath
);
64 extern DECLSPEC
int8_t cec_find_adapters(cec_adapter
*deviceList
, uint8_t iBufSize
, const char *strDevicePath
);
67 extern DECLSPEC
int cec_ping_adapters(void);
69 extern DECLSPEC
int cec_start_bootloader(void);
72 extern DECLSPEC
int cec_power_on_devices(CEC::cec_logical_address address
);
74 extern DECLSPEC
int cec_power_on_devices(cec_logical_address address
);
78 extern DECLSPEC
int cec_standby_devices(CEC::cec_logical_address address
);
80 extern DECLSPEC
int cec_standby_devices(cec_logical_address address
);
84 extern DECLSPEC
int cec_set_active_source(CEC::cec_device_type type
);
86 extern DECLSPEC
int cec_set_active_source(cec_device_type type
);
90 extern DECLSPEC
int cec_set_deck_control_mode(CEC::cec_deck_control_mode mode
, int bSendUpdate
);
92 extern DECLSPEC
int cec_set_deck_control_mode(cec_deck_control_mode mode
, int bSendUpdate
);
96 extern DECLSPEC
int cec_set_deck_info(CEC::cec_deck_info info
, int bSendUpdate
);
98 extern DECLSPEC
int cec_set_deck_info(cec_deck_info info
, int bSendUpdate
);
101 extern DECLSPEC
int cec_set_inactive_view(void);
104 extern DECLSPEC
int cec_set_menu_state(CEC::cec_menu_state state
, int bSendUpdate
);
106 extern DECLSPEC
int cec_set_menu_state(cec_menu_state state
, int bSendUpdate
);
110 extern DECLSPEC
int cec_transmit(const CEC::cec_command
*data
);
112 extern DECLSPEC
int cec_transmit(const cec_command
*data
);
116 extern DECLSPEC
int cec_set_logical_address(CEC::cec_logical_address iLogicalAddress
);
118 extern DECLSPEC
int cec_set_logical_address(cec_logical_address iLogicalAddress
);
121 extern DECLSPEC
int cec_set_physical_address(uint16_t iPhysicalAddress
);
124 extern DECLSPEC
int cec_set_osd_string(CEC::cec_logical_address iLogicalAddress
, CEC::cec_display_control duration
, const char *strMessage
);
126 extern DECLSPEC
int cec_set_osd_string(cec_logical_address iLogicalAddress
, cec_display_control duration
, const char *strMessage
);
129 extern DECLSPEC
int cec_switch_monitoring(int bEnable
);
132 extern DECLSPEC
CEC::cec_version
cec_get_device_cec_version(CEC::cec_logical_address iLogicalAddress
);
134 extern DECLSPEC cec_version
cec_get_device_cec_version(cec_logical_address iLogicalAddress
);
138 extern DECLSPEC
int cec_get_device_menu_language(CEC::cec_logical_address iLogicalAddress
, CEC::cec_menu_language
*language
);
140 extern DECLSPEC
int cec_get_device_menu_language(cec_logical_address iLogicalAddress
, cec_menu_language
*language
);
144 extern DECLSPEC
uint64_t cec_get_device_vendor_id(CEC::cec_logical_address iLogicalAddress
);
146 extern DECLSPEC
uint64_t cec_get_device_vendor_id(cec_logical_address iLogicalAddress
);
150 extern DECLSPEC
uint16_t cec_get_device_physical_address(CEC::cec_logical_address iLogicalAddress
);
152 extern DECLSPEC
uint16_t cec_get_device_physical_address(cec_logical_address iLogicalAddress
);
156 extern DECLSPEC
CEC::cec_logical_address
cec_get_active_source(void);
158 extern DECLSPEC cec_logical_address
cec_get_active_source(void);
162 extern DECLSPEC
int cec_is_active_source(CEC::cec_logical_address iAddress
);
164 extern DECLSPEC
int cec_is_active_source(cec_logical_address iAddress
);
168 extern DECLSPEC
CEC::cec_power_status
cec_get_device_power_status(CEC::cec_logical_address iLogicalAddress
);
170 extern DECLSPEC cec_power_status
cec_get_device_power_status(cec_logical_address iLogicalAddress
);
174 extern DECLSPEC
int cec_poll_device(CEC::cec_logical_address iLogicalAddress
);
176 extern DECLSPEC
int cec_poll_device(cec_logical_address iLogicalAddress
);
180 extern DECLSPEC
CEC::cec_logical_addresses
cec_get_active_devices(void);
182 extern DECLSPEC cec_logical_addresses
cec_get_active_devices(void);
186 extern DECLSPEC
int cec_is_active_device(CEC::cec_logical_address iAddress
);
188 extern DECLSPEC
int cec_is_active_device(cec_logical_address iAddress
);
192 extern DECLSPEC
int cec_is_active_device_type(CEC::cec_device_type type
);
194 extern DECLSPEC
int cec_is_active_device_type(cec_device_type type
);
198 extern DECLSPEC
int cec_set_hdmi_port(CEC::cec_logical_address iBaseDevice
, uint8_t iPort
);
200 extern DECLSPEC
int cec_set_hdmi_port(cec_logical_address iBaseDevice
, uint8_t iPort
);
203 extern DECLSPEC
int cec_volume_up(int bSendRelease
);
205 extern DECLSPEC
int cec_volume_down(int bSendRelease
);
207 extern DECLSPEC
int cec_mute_audio(int bSendRelease
);
210 extern DECLSPEC
int cec_send_keypress(CEC::cec_logical_address iDestination
, CEC::cec_user_control_code key
, int bWait
);
212 extern DECLSPEC
int cec_send_keypress(cec_logical_address iDestination
, cec_user_control_code key
, int bWait
);
216 extern DECLSPEC
int cec_send_key_release(CEC::cec_logical_address iDestination
, int bWait
);
218 extern DECLSPEC
int cec_send_key_release(cec_logical_address iDestination
, int bWait
);
222 extern DECLSPEC
CEC::cec_osd_name
cec_get_device_osd_name(CEC::cec_logical_address iAddress
);
224 extern DECLSPEC cec_osd_name
cec_get_device_osd_name(cec_logical_address iAddress
);
228 extern DECLSPEC
int cec_set_stream_path_logical(CEC::cec_logical_address iAddress
);
230 extern DECLSPEC
int cec_set_stream_path_logical(cec_logical_address iAddress
);
233 extern DECLSPEC
int cec_set_stream_path_physical(uint16_t iPhysicalAddress
);
236 extern DECLSPEC
CEC::cec_logical_addresses
cec_get_logical_addresses(void);
238 extern DECLSPEC cec_logical_addresses
cec_get_logical_addresses(void);
242 extern DECLSPEC
int cec_get_current_configuration(CEC::libcec_configuration
*configuration
);
244 extern DECLSPEC
int cec_get_current_configuration(libcec_configuration
*configuration
);
247 extern DECLSPEC
int cec_can_persist_configuration(void);
250 extern DECLSPEC
int cec_persist_configuration(CEC::libcec_configuration
*configuration
);
252 extern DECLSPEC
int cec_persist_configuration(libcec_configuration
*configuration
);
256 extern DECLSPEC
int cec_set_configuration(const CEC::libcec_configuration
*configuration
);
258 extern DECLSPEC
int cec_set_configuration(const libcec_configuration
*configuration
);
261 extern DECLSPEC
void cec_rescan_devices(void);
263 extern DECLSPEC
int cec_is_libcec_active_source(void);
266 extern DECLSPEC
int cec_get_device_information(const char *strPort
, CEC::libcec_configuration
*config
, uint32_t iTimeoutMs
);
268 extern DECLSPEC
int cec_get_device_information(const char *strPort
, libcec_configuration
*config
, uint32_t iTimeoutMs
);
271 extern DECLSPEC
const char * cec_get_lib_info(void);
273 extern DECLSPEC
void cec_init_video_standalone(void);
275 extern DECLSPEC
uint16_t cec_get_adapter_vendor_id(void);
277 extern DECLSPEC
uint16_t cec_get_adapter_product_id(void);
279 extern DECLSPEC
uint8_t cec_audio_toggle_mute(void);
281 extern DECLSPEC
uint8_t cec_audio_mute(void);
283 extern DECLSPEC
uint8_t cec_audio_unmute(void);
285 extern DECLSPEC
uint8_t cec_audio_get_status(void);
288 extern DECLSPEC
int8_t cec_detect_adapters(CEC::cec_adapter_descriptor
*deviceList
, uint8_t iBufSize
, const char *strDevicePath
, int bQuickScan
);
290 extern DECLSPEC
int8_t cec_detect_adapters(cec_adapter_descriptor
*deviceList
, uint8_t iBufSize
, const char *strDevicePath
, int bQuickScan
);
297 #endif /* CECEXPORTS_C_H_ */