From: Florian Forster Date: Sat, 23 Jun 2012 18:50:01 +0000 (+0200) Subject: src/utils_vl_lookup.[ch]: Move the any/all/wildcard macros to the header file. X-Git-Tag: collectd-5.2.0~24^2~9 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=3c34cec0895679c5f57f739a1a93dad39a3bd622;p=collectd.git src/utils_vl_lookup.[ch]: Move the any/all/wildcard macros to the header file. --- diff --git a/src/utils_vl_lookup.c b/src/utils_vl_lookup.c index 0f86bff2..2dada247 100644 --- a/src/utils_vl_lookup.c +++ b/src/utils_vl_lookup.c @@ -84,10 +84,6 @@ struct by_type_entry_s }; typedef struct by_type_entry_s by_type_entry_t; -#define LU_IS_ANY(str) (strcmp (str, "/any/") == 0) -#define LU_IS_ALL(str) (strcmp (str, "/all/") == 0) -#define LU_IS_WILDCARD(str) (LU_IS_ANY(str) || LU_IS_ALL(str)) - /* * Private functions */ 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 */