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