diff --git a/libstats/stats_event.h b/libstats/include/stats_event.h similarity index 92% rename from libstats/stats_event.h rename to libstats/include/stats_event.h index ee886280c..504d0890f 100644 --- a/libstats/stats_event.h +++ b/libstats/include/stats_event.h @@ -59,6 +59,19 @@ struct stats_event; #define ERROR_TOO_MANY_ANNOTATIONS 0x80 #define ERROR_TOO_MANY_FIELDS 0x100 +/* TYPE IDS */ +#define INT32_TYPE 0x00 +#define INT64_TYPE 0x01 +#define STRING_TYPE 0x02 +#define LIST_TYPE 0x03 +#define FLOAT_TYPE 0x04 +#define BOOL_TYPE 0x05 +#define BYTE_ARRAY_TYPE 0x06 +#define OBJECT_TYPE 0x07 +#define KEY_VALUE_PAIRS_TYPE 0x08 +#define ATTRIBUTION_CHAIN_TYPE 0x09 +#define ERROR_TYPE 0x0F + /* SYSTEM API */ struct stats_event* stats_event_obtain(); void stats_event_write(struct stats_event* event); diff --git a/libstats/stats_event.c b/libstats/stats_event.c index 5bccd9bb4..58558b3ba 100644 --- a/libstats/stats_event.c +++ b/libstats/stats_event.c @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "stats_event.h" +#include "include/stats_event.h" #include #include #include @@ -34,19 +34,6 @@ #define POS_ATOM_ID (POS_TIMESTAMP + sizeof(byte) + sizeof(uint64_t)) #define POS_FIRST_FIELD (POS_ATOM_ID + sizeof(byte) + sizeof(uint32_t)) -/* TYPE IDS */ -#define INT32_TYPE 0x00 -#define INT64_TYPE 0x01 -#define STRING_TYPE 0x02 -#define LIST_TYPE 0x03 -#define FLOAT_TYPE 0x04 -#define BOOL_TYPE 0x05 -#define BYTE_ARRAY_TYPE 0x06 -#define OBJECT_TYPE 0x07 -#define KEY_VALUE_PAIR_TYPE 0x08 -#define ATTRIBUTION_CHAIN_TYPE 0x09 -#define ERROR_TYPE 0x0F - /* LIMITS */ #define MAX_ANNOTATION_COUNT 15 #define MAX_ANNOTATION_ID 127