extern DECLSPEC int cec_set_active_source(cec_device_type type);
#endif
+#ifdef __cplusplus
+extern DECLSPEC int cec_set_deck_control_mode(CEC::cec_deck_control_mode mode, int bSendUpdate);
+#else
+extern DECLSPEC int cec_set_deck_control_mode(cec_deck_control_mode mode, int bSendUpdate);
+#endif
+
+#ifdef __cplusplus
+extern DECLSPEC int cec_set_deck_info(CEC::cec_deck_info info, int bSendUpdate);
+#else
+extern DECLSPEC int cec_set_deck_info(cec_deck_info info, int bSendUpdate);
+#endif
+
extern DECLSPEC int cec_set_inactive_view(void);
+#ifdef __cplusplus
+extern DECLSPEC int cec_set_menu_state(CEC::cec_menu_state state, int bSendUpdate);
+#else
+extern DECLSPEC int cec_set_menu_state(cec_menu_state state, int bSendUpdate);
+#endif
+
#ifdef __cplusplus
extern DECLSPEC int cec_get_next_log_message(CEC::cec_log_message *message);
#else
return -1;
}
+int cec_set_deck_control_mode(cec_deck_control_mode mode, int bSendUpdate) {
+ if (cec_parser)
+ return cec_parser->SetDeckControlMode(mode, bSendUpdate == 1) ? 1 : 0;
+ return -1;
+}
+
+int cec_set_deck_info(cec_deck_info info, int bSendUpdate) {
+ if (cec_parser)
+ return cec_parser->SetDeckInfo(info, bSendUpdate == 1) ? 1 : 0;
+ return -1;
+
+}
+
int cec_set_inactive_view(void)
{
if (cec_parser)
return -1;
}
+int cec_set_menu_state(cec_menu_state state, int bSendUpdate) {
+ if (cec_parser)
+ return cec_parser->SetMenuState(state, bSendUpdate == 1) ? 1 : 0;
+ return -1;
+}
+
int cec_set_osd_string(cec_logical_address iLogicalAddress, cec_display_control duration, const char *strMessage)
{
if (cec_parser)