Move the graph class into an own module.
[collection4.git] / graph_list.h
1 #ifndef GRAPH_LIST_H
2 #define GRAPH_LIST_H 1
3
4 #include "graph_instance.h"
5
6 /*
7  * Callback types
8  */
9 typedef int (*gl_cfg_callback) (graph_config_t *cfg,
10     void *user_data);
11
12 typedef int (*gl_inst_callback) (graph_config_t *cfg,
13     graph_instance_t *inst, void *user_data);
14
15 /*
16  * Functions
17  */
18 int gl_add_graph (graph_config_t *cfg);
19
20 int gl_graph_get_all (gl_cfg_callback callback,
21     void *user_data);
22
23 graph_config_t *graph_get_selected (void);
24
25 int gl_graph_instance_get_all (graph_config_t *cfg,
26     gl_inst_callback callback, void *user_data);
27
28 int gl_instance_get_all (gl_inst_callback callback,
29     void *user_data);
30
31 int gl_update (void);
32
33 #endif /* GRAPH_LIST_H */
34 /* vim: set sw=2 sts=2 et fdm=marker : */