From: Lars Op den Kamp Date: Thu, 8 Mar 2012 14:29:10 +0000 (+0100) Subject: cec: added v2 msgcodes. bugzid: 543 X-Git-Tag: upstream/2.2.0~1^2~31^2~96 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=da59dc5fede86b5d74ff151b3d95dfc3593ec25b;p=deb_libcec.git cec: added v2 msgcodes. bugzid: 543 --- diff --git a/include/cectypes.h b/include/cectypes.h index 095416e..aca0478 100644 --- a/include/cectypes.h +++ b/include/cectypes.h @@ -600,6 +600,21 @@ typedef enum cec_adapter_messagecode MSGCODE_START_BOOTLOADER, MSGCODE_SET_POWERSTATE, MSGCODE_SET_CONTROLLED, + MSGCODE_GET_AUTO_ENABLED, + MSGCODE_SET_AUTO_ENABLED, + MSGCODE_GET_DEFAULT_LOGICAL_ADDRESS, + MSGCODE_SET_DEFAULT_LOGICAL_ADDRESS, + MSGCODE_GET_LOGICAL_ADDRESS_MASK, + MSGCODE_SET_LOGICAL_ADDRESS_MASK, + MSGCODE_GET_PHYSICAL_ADDRESS, + MSGCODE_SET_PHYSICAL_ADDRESS, + MSGCODE_GET_DEVICE_TYPE, + MSGCODE_SET_DEVICE_TYPE, + MSGCODE_GET_HDMI_VERSION, + MSGCODE_SET_HDMI_VERSION, + MSGCODE_GET_OSD_NAME, + MSGCODE_SET_OSD_NAME, + MSGCODE_WRITE_EEPROM, MSGCODE_FRAME_EOM = 0x80, MSGCODE_FRAME_ACK = 0x40, } cec_adapter_messagecode; diff --git a/src/lib/adapter/USBCECAdapterMessage.h b/src/lib/adapter/USBCECAdapterMessage.h index 06e4088..d3f3df9 100644 --- a/src/lib/adapter/USBCECAdapterMessage.h +++ b/src/lib/adapter/USBCECAdapterMessage.h @@ -225,6 +225,51 @@ namespace CEC case MSGCODE_SET_CONTROLLED: strMsg = "SET_CONTROLLED"; break; + case MSGCODE_GET_AUTO_ENABLED: + strMsg = "GET_AUTO_ENABLED"; + break; + case MSGCODE_SET_AUTO_ENABLED: + strMsg = "SET_AUTO_ENABLED"; + break; + case MSGCODE_GET_DEFAULT_LOGICAL_ADDRESS: + strMsg = "GET_DEFAULT_LOGICAL_ADDRESS"; + break; + case MSGCODE_SET_DEFAULT_LOGICAL_ADDRESS: + strMsg = "SET_DEFAULT_LOGICAL_ADDRESS"; + break; + case MSGCODE_GET_LOGICAL_ADDRESS_MASK: + strMsg = "GET_LOGICAL_ADDRESS_MASK"; + break; + case MSGCODE_SET_LOGICAL_ADDRESS_MASK: + strMsg = "SET_LOGICAL_ADDRESS_MASK"; + break; + case MSGCODE_GET_PHYSICAL_ADDRESS: + strMsg = "GET_PHYSICAL_ADDRESS"; + break; + case MSGCODE_SET_PHYSICAL_ADDRESS: + strMsg = "SET_PHYSICAL_ADDRESS"; + break; + case MSGCODE_GET_DEVICE_TYPE: + strMsg = "GET_DEVICE_TYPE"; + break; + case MSGCODE_SET_DEVICE_TYPE: + strMsg = "SET_DEVICE_TYPE"; + break; + case MSGCODE_GET_HDMI_VERSION: + strMsg = "GET_HDMI_VERSION"; + break; + case MSGCODE_SET_HDMI_VERSION: + strMsg = "SET_HDMI_VERSION"; + break; + case MSGCODE_GET_OSD_NAME: + strMsg = "GET_OSD_NAME"; + break; + case MSGCODE_SET_OSD_NAME: + strMsg = "SET_OSD_NAME"; + break; + case MSGCODE_WRITE_EEPROM: + strMsg = "WRITE_EEPROM"; + break; } return strMsg;