X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_vl_lookup.h;h=31787f53250b2ca893827170a8ab868f2a6ea024;hb=f87a715c49a41472dbeb5f244d84691365ef8745;hp=e115ec8dac40a50f63b8c13e9bb5b8b3eed3067f;hpb=ab3724ba43c8d86d5c0bc3c777ff0f5aab44dc33;p=collectd.git diff --git a/src/utils_vl_lookup.h b/src/utils_vl_lookup.h index e115ec8d..31787f53 100644 --- a/src/utils_vl_lookup.h +++ b/src/utils_vl_lookup.h @@ -63,6 +63,12 @@ struct identifier_s }; typedef struct identifier_s identifier_t; +#define LU_GROUP_BY_HOST 0x01 +#define LU_GROUP_BY_PLUGIN 0x02 +#define LU_GROUP_BY_PLUGIN_INSTANCE 0x04 +/* #define LU_GROUP_BY_TYPE 0x00 */ +#define LU_GROUP_BY_TYPE_INSTANCE 0x10 + /* * Functions */ @@ -74,7 +80,7 @@ lookup_t *lookup_create (lookup_class_callback_t, void lookup_destroy (lookup_t *obj); int lookup_add (lookup_t *obj, - identifier_t const *ident, void *user_class); + identifier_t const *ident, unsigned int group_by, void *user_class); /* TODO(octo): Pass lookup_obj_callback_t to lookup_search()? */ int lookup_search (lookup_t *obj,