X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=graph_def.h;h=a4bb7fde579b6844f3b691894de4d628f072abe3;hb=de9239ac3e16e12503eae5ddbfcdaae27f262081;hp=f9c4f5a8f563457b00756003cff3d42730b6822a;hpb=173a3843530edd1049a7b4071883574e363c2bec;p=collection4.git diff --git a/graph_def.h b/graph_def.h index f9c4f5a..a4bb7fd 100644 --- a/graph_def.h +++ b/graph_def.h @@ -1,20 +1,25 @@ #ifndef GRAPH_DEF_H #define GRAPH_DEF_H 1 -#include "graph_ident.h" +#include "graph_types.h" #include "utils_array.h" -#include "graph_list.h" +#include "oconfig.h" -struct graph_def_s; -typedef struct graph_def_s graph_def_t; - -graph_def_t *def_create (graph_config_t *cfg, graph_ident_t *ident); +graph_def_t *def_create (graph_config_t *cfg, graph_ident_t *ident, + const char *ds_name); void def_destroy (graph_def_t *def); +int def_config (graph_config_t *cfg, const oconfig_item_t *ci); + int def_append (graph_def_t *head, graph_def_t *def); -graph_def_t *def_search (graph_def_t *head, graph_ident_t *ident); +graph_def_t *def_search (graph_def_t *head, graph_ident_t *ident, + const char *ds_name); + +_Bool def_matches (graph_def_t *def, graph_ident_t *ident); + +int def_foreach (graph_def_t *def, def_callback_t callback, void *user_data); int def_get_rrdargs (graph_def_t *def, graph_ident_t *ident, str_array_t *args);