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 <cw00.choi@samsung.com>
#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
#include <glib.h>
#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;