src/utils_vl_lookup.[ch]: Move the any/all/wildcard macros to the header file.
authorFlorian Forster <octo@collectd.org>
Sat, 23 Jun 2012 18:50:01 +0000 (20:50 +0200)
committerFlorian Forster <octo@collectd.org>
Sat, 23 Jun 2012 18:50:01 +0000 (20:50 +0200)
src/utils_vl_lookup.c
src/utils_vl_lookup.h

index 0f86bff..2dada24 100644 (file)
@@ -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
  */
index e115ec8..c006fc7 100644 (file)
@@ -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
  */