X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=graph_def.h;h=a4bb7fde579b6844f3b691894de4d628f072abe3;hb=de9239ac3e16e12503eae5ddbfcdaae27f262081;hp=780ed37820513120f8b20ee18e6f3405814677a9;hpb=701f6f1bacb09b94be70490ac90cad5759687ff5;p=collection4.git diff --git a/graph_def.h b/graph_def.h index 780ed37..a4bb7fd 100644 --- a/graph_def.h +++ b/graph_def.h @@ -1,18 +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); -graph_def_t *def_search (graph_def_t *head, graph_ident_t *ident); +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, + 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);