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