From 5c3d5f232da75c2d271b903e4c7cd81bdecbb2cb Mon Sep 17 00:00:00 2001 From: Chanwoo Choi Date: Fri, 24 Jun 2022 14:29:56 +0900 Subject: [PATCH] util: common: Move enum data_type into common.h and rename it The previous enum monitor_data_type will be used for all data. So that move enum monitor_data_type into common.h and then rename from enum monitor_data_type to enum data_type with more generic enumeration name. And add new DATA_TYPE_BOOLEAN for boolean type. Change-Id: I38c459057fb4962af883fc5a043f0a4f1ffda8f2 Signed-off-by: Chanwoo Choi --- include/util/common.h | 14 ++++++++++++++ include/util/resource.h | 14 -------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/include/util/common.h b/include/util/common.h index 48315b8..8ff3d85 100644 --- a/include/util/common.h +++ b/include/util/common.h @@ -35,6 +35,20 @@ typedef unsigned long long uint64; #define BUFF_MAX 255 #define ARRAY_SIZE(name) (sizeof(name)/sizeof(name[0])) +enum data_type { + DATA_TYPE_UNKNOWN = 0, + DATA_TYPE_INT, + DATA_TYPE_INT64, + DATA_TYPE_UINT, + DATA_TYPE_UINT64, + DATA_TYPE_DOUBLE, + DATA_TYPE_STRING, + DATA_TYPE_ARRAY, + DATA_TYPE_PTR, + DATA_TYPE_BOOLEAN, + DATA_TYPE_NUM +}; + /* * One byte digit has 3 position in decimal representation * 2 - 5 diff --git a/include/util/resource.h b/include/util/resource.h index 850e8c8..79f9bbd 100644 --- a/include/util/resource.h +++ b/include/util/resource.h @@ -25,20 +25,6 @@ #include #include "common.h" -enum monitor_data_type { - DATA_TYPE_UNKNOWN = 0, - DATA_TYPE_INT, - DATA_TYPE_INT64, - DATA_TYPE_UINT, - DATA_TYPE_UINT64, - DATA_TYPE_DOUBLE, - DATA_TYPE_STRING, - DATA_TYPE_ARRAY, - DATA_TYPE_PTR, - - DATA_TYPE_NUM -}; - struct resource; struct resource_attribute; -- 2.7.4