Various modules: Use the new "rrd_args_t" structure.
[collection4.git] / src / graph_def.h
1 #ifndef GRAPH_DEF_H
2 #define GRAPH_DEF_H 1
3
4 #include "graph_types.h"
5 #include "utils_array.h"
6 #include "oconfig.h"
7 #include "rrd_args.h"
8
9 graph_def_t *def_create (graph_config_t *cfg, graph_ident_t *ident,
10     const char *ds_name);
11
12 void def_destroy (graph_def_t *def);
13
14 int def_config (graph_config_t *cfg, const oconfig_item_t *ci);
15
16 int def_append (graph_def_t *head, graph_def_t *def);
17
18 graph_def_t *def_search (graph_def_t *head, graph_ident_t *ident,
19     const char *ds_name);
20
21 _Bool def_matches (graph_def_t *def, graph_ident_t *ident);
22
23 int def_foreach (graph_def_t *def, def_callback_t callback, void *user_data);
24
25 int def_get_rrdargs (graph_def_t *def, graph_ident_t *ident,
26     rrd_args_t *args);
27
28 /* vim: set sw=2 sts=2 et fdm=marker : */
29 #endif