From: Sebastian Harl Date: Wed, 10 Dec 2014 23:15:55 +0000 (+0100) Subject: store.h: Make it such that HOST/SERVICE/METRIC don't share bits with ATTRIBUTE X-Git-Tag: sysdb-0.7.0~112^2~10 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=574ff0923e158af29fce5c7b71a14f4bf04d740d;p=sysdb.git 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. --- 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.