X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Fcectypes.h;h=904db4c59f0dd77c006b8dfe4929ddf61547d054;hb=5daed059e1d5bca3ddfa0787679ef4e7b349e382;hp=ca065c606051ade2507c39ab669db40004d4a308;hpb=466925f5c43536e5fd96632615810da783b78096;p=deb_libcec.git diff --git a/include/cectypes.h b/include/cectypes.h index ca065c6..904db4c 100644 --- a/include/cectypes.h +++ b/include/cectypes.h @@ -584,6 +584,15 @@ typedef enum cec_opcode CEC_OPCODE_SYSTEM_AUDIO_MODE_REQUEST = 0x70, CEC_OPCODE_SYSTEM_AUDIO_MODE_STATUS = 0x7E, CEC_OPCODE_SET_AUDIO_RATE = 0x9A, + + /* CEC 1.4 */ + CEC_OPCODE_START_ARC = 0xC0, + CEC_OPCODE_REPORT_ARC_STARTED = 0xC1, + CEC_OPCODE_REPORT_ARC_ENDED = 0xC2, + CEC_OPCODE_REQUEST_ARC_START = 0xC3, + CEC_OPCODE_REQUEST_ARC_END = 0xC4, + CEC_OPCODE_END_ARC = 0xC5, + CEC_OPCODE_CDC = 0xF8, /* when this opcode is set, no opcode will be sent to the device. this is one of the reserved numbers */ CEC_OPCODE_NONE = 0xFD } cec_opcode; @@ -1086,13 +1095,30 @@ typedef enum libcec_alert typedef enum libcec_parameter_type { - CEC_PARAMETER_TYPE_STRING + CEC_PARAMETER_TYPE_STRING, + CEC_PARAMETER_TYPE_UNKOWN } libcec_parameter_type; struct libcec_parameter { libcec_parameter_type paramType; /**< the type of this parameter */ void* paramData; /**< the value of this parameter */ + +#ifdef __cplusplus + libcec_parameter(void) + { + paramType = CEC_PARAMETER_TYPE_UNKOWN; + paramData = NULL; + } + + libcec_parameter(const char *strMessage) + { + paramType = CEC_PARAMETER_TYPE_STRING; + paramData = (void*)strMessage; + } + + virtual ~libcec_parameter(void) {} +#endif }; struct libcec_configuration;