Autotoolization.
[collection4.git] / src / 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_config_submit (void);
21
22 int gl_graph_get_all (gl_cfg_callback callback,
23     void *user_data);
24
25 graph_config_t *gl_graph_get_selected (void);
26
27 int gl_graph_instance_get_all (graph_config_t *cfg,
28     gl_inst_callback callback, void *user_data);
29
30 int gl_instance_get_all (gl_inst_callback callback,
31     void *user_data);
32
33 int gl_update (void);
34
35 #endif /* GRAPH_LIST_H */
36 /* vim: set sw=2 sts=2 et fdm=marker : */