From: Lars Op den Kamp Date: Thu, 27 Oct 2011 22:04:30 +0000 (+0200) Subject: cec: make CEC_LOG levels powers of 2 X-Git-Tag: upstream/2.2.0~1^2~206 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=941c58b95d76a1abbe55d7ada2ce543dc3985eca;p=deb_libcec.git cec: make CEC_LOG levels powers of 2 --- diff --git a/include/cectypes.h b/include/cectypes.h index 4c029e8..4396755 100644 --- a/include/cectypes.h +++ b/include/cectypes.h @@ -529,11 +529,12 @@ typedef enum cec_opcode typedef enum cec_log_level { - CEC_LOG_DEBUG = 0, - CEC_LOG_TRAFFIC, - CEC_LOG_NOTICE, - CEC_LOG_WARNING, - CEC_LOG_ERROR + CEC_LOG_ERROR = 1, + CEC_LOG_WARNING = 2, + CEC_LOG_NOTICE = 4, + CEC_LOG_TRAFFIC = 8, + CEC_LOG_DEBUG = 16, + CEC_LOG_ALL = 31 } cec_log_level; typedef struct cec_log_message @@ -706,7 +707,7 @@ typedef enum cec_vendor_id #define MSGEND 0xFE #define MSGESC 0xFD #define ESCOFFSET 3 -#define CEC_MIN_VERSION 6 +#define CEC_MIN_VERSION 8 #define CEC_LIB_VERSION 8 #define CEC_BUTTON_TIMEOUT 500