X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=graph_ident.h;fp=graph_ident.h;h=442bcfeba499e6cd3402da090574b2d6ee63230e;hb=9f1edc0d06f42917c331199b67843f5201496514;hp=abc451db0edc95ee005f11fe93e7b2ef8b2dcbcd;hpb=4732be36d1fd60fe5047ffe1e2d903403d691a8b;p=collection4.git diff --git a/graph_ident.h b/graph_ident.h index abc451d..442bcfe 100644 --- a/graph_ident.h +++ b/graph_ident.h @@ -1,6 +1,9 @@ #ifndef GRAPH_IDENT_H #define GRAPH_IDENT_H 1 +#define ANY_TOKEN "/any/" +#define ALL_TOKEN "/all/" + struct graph_ident_s; typedef struct graph_ident_s graph_ident_t; @@ -22,6 +25,14 @@ const char *ident_get_plugin_instance (graph_ident_t *ident); const char *ident_get_type (graph_ident_t *ident); const char *ident_get_type_instance (graph_ident_t *ident); +int ident_set_host (graph_ident_t *ident, const char *host); +int ident_set_plugin (graph_ident_t *ident, const char *plugin); +int ident_set_plugin_instance (graph_ident_t *ident, + const char *plugin_instance); +int ident_set_type (graph_ident_t *ident, const char *type); +int ident_set_type_instance (graph_ident_t *ident, + const char *type_instance); + int ident_compare (const graph_ident_t *i0, const graph_ident_t *i1);