X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=graph_ident.h;fp=graph_ident.h;h=0000000000000000000000000000000000000000;hb=0ab3085f89e64eecd67d3179ea87f0463e918a10;hp=5107011ed3dec9d9848ee874895c3cdf32df9bd5;hpb=af2ed61b280e1ec169aba2bcb9df30ac76b006d2;p=collection4.git diff --git a/graph_ident.h b/graph_ident.h deleted file mode 100644 index 5107011..0000000 --- a/graph_ident.h +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef GRAPH_IDENT_H -#define GRAPH_IDENT_H 1 - -#define ANY_TOKEN "/any/" -#define ALL_TOKEN "/all/" - -#define IS_ANY(str) (((str) != NULL) && (strcasecmp (ANY_TOKEN, (str)) == 0)) -#define IS_ALL(str) (((str) != NULL) && (strcasecmp (ALL_TOKEN, (str)) == 0)) - -struct graph_ident_s; -typedef struct graph_ident_s graph_ident_t; - -graph_ident_t *ident_create (const char *host, - const char *plugin, const char *plugin_instance, - const char *type, const char *type_instance); -graph_ident_t *ident_clone (const graph_ident_t *ident); - -#define IDENT_FLAG_REPLACE_ALL 0x01 -#define IDENT_FLAG_REPLACE_ANY 0x02 -graph_ident_t *ident_copy_with_selector (const graph_ident_t *selector, - const graph_ident_t *ident, unsigned int flags); - -void ident_destroy (graph_ident_t *ident); - -const char *ident_get_host (graph_ident_t *ident); -const char *ident_get_plugin (graph_ident_t *ident); -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); - -_Bool ident_matches (const graph_ident_t *selector, - 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_json (const graph_ident_t *ident); - -/* vim: set sw=2 sts=2 et fdm=marker : */ -#endif /* GRAPH_IDENT_H */