Merge branch 'search'
[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
8 graph_def_t *def_create (graph_config_t *cfg, graph_ident_t *ident,
9     const char *ds_name);
10
11 void def_destroy (graph_def_t *def);
12
13 int def_config (graph_config_t *cfg, const oconfig_item_t *ci);
14
15 int def_append (graph_def_t *head, graph_def_t *def);
16
17 graph_def_t *def_search (graph_def_t *head, graph_ident_t *ident,
18     const char *ds_name);
19
20 _Bool def_matches (graph_def_t *def, graph_ident_t *ident);
21
22 int def_foreach (graph_def_t *def, def_callback_t callback, void *user_data);
23
24 int def_get_rrdargs (graph_def_t *def, graph_ident_t *ident,
25     str_array_t *args);
26
27 /* vim: set sw=2 sts=2 et fdm=marker : */
28 #endif