projects
/
collection4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
collection.conf: Add "ShowZero" options to some graphs.
[collection4.git]
/
graph_ident.h
diff --git
a/graph_ident.h
b/graph_ident.h
index
442bcfe
..
03a3c72
100644
(file)
--- a/
graph_ident.h
+++ b/
graph_ident.h
@@
-1,11
+1,13
@@
#ifndef GRAPH_IDENT_H
#define GRAPH_IDENT_H 1
#ifndef GRAPH_IDENT_H
#define GRAPH_IDENT_H 1
+#include "graph_types.h"
+
#define ANY_TOKEN "/any/"
#define ALL_TOKEN "/all/"
#define ANY_TOKEN "/any/"
#define ALL_TOKEN "/all/"
-struct graph_ident_s;
-typedef struct graph_ident_s graph_ident_t;
+#define IS_ANY(str) (((str) != NULL) && (strcasecmp (ANY_TOKEN, (str)) == 0))
+#define IS_ALL(str) (((str) != NULL) && (strcasecmp (ALL_TOKEN, (str)) == 0))
graph_ident_t *ident_create (const char *host,
const char *plugin, const char *plugin_instance,
graph_ident_t *ident_create (const char *host,
const char *plugin, const char *plugin_instance,
@@
-37,7
+39,7
@@
int ident_compare (const graph_ident_t *i0,
const graph_ident_t *i1);
_Bool ident_matches (const graph_ident_t *selector,
const graph_ident_t *i1);
_Bool ident_matches (const graph_ident_t *selector,
-
const graph_ident_t *ident);
+ const graph_ident_t *ident);
char *ident_to_string (const graph_ident_t *ident);
char *ident_to_file (const graph_ident_t *ident);
char *ident_to_string (const graph_ident_t *ident);
char *ident_to_file (const graph_ident_t *ident);