From 574ff0923e158af29fce5c7b71a14f4bf04d740d Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Thu, 11 Dec 2014 00:15:55 +0100 Subject: [PATCH] store.h: Make it such that HOST/SERVICE/METRIC don't share bits with ATTRIBUTE An attribute can be assigned to any of the other types. This approach allows to represent host-, service-, and metric-attributes in one byte. --- src/include/core/store.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/include/core/store.h b/src/include/core/store.h index 6edbea4..2253d55 100644 --- a/src/include/core/store.h +++ b/src/include/core/store.h @@ -49,7 +49,8 @@ enum { SDB_HOST = 1, SDB_SERVICE, SDB_METRIC, - SDB_ATTRIBUTE, + + SDB_ATTRIBUTE = 1 << 4, /* * Queryable fields of a stored object. -- 2.30.2