collection.conf: Add some more graphs.
[collection4.git] / graph.h
1 #ifndef GRAPH_H
2 #define GRAPH_H 1
3
4 /*
5  * Data types
6  */
7 struct graph_config_s;
8 typedef struct graph_config_s graph_config_t;
9
10 #include "graph_def.h"
11 #include "graph_ident.h"
12 #include "graph_instance.h"
13 #include "oconfig.h"
14
15 /*
16  * Functions
17  */
18 graph_config_t *graph_create (const graph_ident_t *selector);
19
20 void graph_destroy (graph_config_t *graph);
21
22 int graph_config_add (const oconfig_item_t *ci);
23
24 int graph_add_file (graph_config_t *cfg, const graph_ident_t *file);
25
26 int graph_get_title (graph_config_t *cfg,
27     char *buffer, size_t buffer_size);
28
29 graph_ident_t *graph_get_selector (graph_config_t *cfg);
30
31 graph_instance_t *graph_get_instances (graph_config_t *cfg);
32
33 graph_def_t *graph_get_defs (graph_config_t *cfg);
34
35 int graph_add_def (graph_config_t *cfg, graph_def_t *def);
36
37 _Bool graph_matches (graph_config_t *cfg, const graph_ident_t *ident);
38
39 int graph_compare (graph_config_t *cfg, const graph_ident_t *ident);
40
41 int graph_clear_instances (graph_config_t *cfg);
42
43 #endif /* GRAPH_H */
44 /* vim: set sw=2 sts=2 et fdm=marker : */