Code

store.h: Make it such that HOST/SERVICE/METRIC don't share bits with ATTRIBUTE
authorSebastian Harl <sh@tokkee.org>
Wed, 10 Dec 2014 23:15:55 +0000 (00:15 +0100)
committerSebastian Harl <sh@tokkee.org>
Wed, 10 Dec 2014 23:15:55 +0000 (00:15 +0100)
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

index 6edbea4f173e89000f7869217b145a38ec3294be..2253d55a417ed65f75a422c244810bbdd02e6f8f 100644 (file)
@@ -49,7 +49,8 @@ enum {
        SDB_HOST = 1,
        SDB_SERVICE,
        SDB_METRIC,
-       SDB_ATTRIBUTE,
+
+       SDB_ATTRIBUTE = 1 << 4,
 
        /*
         * Queryable fields of a stored object.