X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcec-config%2Fcec-config.cpp;h=380adeee91475a4585a853c17460004130e0abba;hb=e6d284e6cd5557bf64d33411e2d2923a980dc530;hp=36bdb21fbb55c6a255b74c451ae12056afbe902d;hpb=2d4e263cf51412a7c7195e80290b972ad567e0ed;p=deb_libcec.git diff --git a/src/cec-config/cec-config.cpp b/src/cec-config/cec-config.cpp index 36bdb21..380adee 100644 --- a/src/cec-config/cec-config.cpp +++ b/src/cec-config/cec-config.cpp @@ -110,7 +110,7 @@ bool GetWord(string& data, string& word) return true; } -int CecLogMessage(void *UNUSED(cbParam), const cec_log_message &message) +int CecLogMessage(void *UNUSED(cbParam), const cec_log_message message) { switch (message.level) { @@ -127,14 +127,14 @@ int CecLogMessage(void *UNUSED(cbParam), const cec_log_message &message) return 0; } -int CecKeyPress(void *UNUSED(cbParam), const cec_keypress &key) +int CecKeyPress(void *UNUSED(cbParam), const cec_keypress key) { g_lastKey = key.keycode; g_keyEvent.Signal(); return 0; } -int CecCommand(void *UNUSED(cbParam), const cec_command &command) +int CecCommand(void *UNUSED(cbParam), const cec_command command) { g_lastCommand = command.opcode; g_responseEvent.Signal(); @@ -160,7 +160,7 @@ bool OpenConnection(cec_device_type type = CEC_DEVICE_TYPE_RECORDING_DEVICE) g_config.Clear(); snprintf(g_config.strDeviceName, 13, "CEC-config"); g_config.callbackParam = NULL; - g_config.clientVersion = (uint32_t)CEC_CLIENT_VERSION_1_9_0; + g_config.clientVersion = (uint32_t)CEC_CLIENT_VERSION_2_0_0; g_callbacks.CBCecLogMessage = &CecLogMessage; g_callbacks.CBCecKeyPress = &CecKeyPress; g_callbacks.CBCecCommand = &CecCommand;