X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_vl_lookup.h;h=1d01ebdf2978a32b924e21fe844c6cc87793c37e;hb=09147a2c9dde2e04e660409e7a5ac0eb09604b07;hp=c006fc7ff681ea88faed0b263f1b2a375bf34392;hpb=defd9a4014a34640b1228bbcb96e6aa99e8bbb37;p=collectd.git diff --git a/src/utils_vl_lookup.h b/src/utils_vl_lookup.h index c006fc7f..1d01ebdf 100644 --- a/src/utils_vl_lookup.h +++ b/src/utils_vl_lookup.h @@ -1,6 +1,6 @@ /** * collectd - src/utils_vl_lookup.h - * Copyright (C) 2012 Florian Forster + * Copyright (C) 2012 Florian Forster * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -63,12 +63,11 @@ struct identifier_s }; typedef struct identifier_s identifier_t; -#define LU_ANY "/any/" -#define LU_ALL "/all/" - -#define LU_IS_ANY(str) (strcmp (str, LU_ANY) == 0) -#define LU_IS_ALL(str) (strcmp (str, LU_ALL) == 0) -#define LU_IS_WILDCARD(str) (LU_IS_ANY(str) || LU_IS_ALL(str)) +#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 @@ -81,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,