X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_vl_lookup.h;h=c006fc7ff681ea88faed0b263f1b2a375bf34392;hb=3c34cec0895679c5f57f739a1a93dad39a3bd622;hp=e115ec8dac40a50f63b8c13e9bb5b8b3eed3067f;hpb=4f649979970d469fc8f60f8a728f7f5045be9a4d;p=collectd.git diff --git a/src/utils_vl_lookup.h b/src/utils_vl_lookup.h index e115ec8d..c006fc7f 100644 --- a/src/utils_vl_lookup.h +++ b/src/utils_vl_lookup.h @@ -63,6 +63,13 @@ 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)) + /* * Functions */