X-Git-Url: https://git.octo.it/?p=collection4.git;a=blobdiff_plain;f=src%2Fgraph_list.h;fp=src%2Fgraph_list.h;h=e6b6888cdbf528724ac18a310dd8a70f9d8fcfd8;hp=c17d6fc08c17c220c2e911eeb85f1e5cd0ff75f5;hb=2c85f876c1b9d5c161694cfb03cf20773b74c844;hpb=da630143f2fd8a152ec71a9c7ed8b0ae17081fa4 diff --git a/src/graph_list.h b/src/graph_list.h index c17d6fc..e6b6888 100644 --- a/src/graph_list.h +++ b/src/graph_list.h @@ -1,33 +1,27 @@ #ifndef GRAPH_LIST_H #define GRAPH_LIST_H 1 +#include "graph_types.h" +#include "graph.h" #include "graph_instance.h" /* - * Callback types - */ -typedef int (*gl_cfg_callback) (graph_config_t *cfg, - void *user_data); - -typedef int (*gl_inst_callback) (graph_config_t *cfg, - graph_instance_t *inst, void *user_data); - -/* * Functions */ int gl_add_graph (graph_config_t *cfg); int gl_config_submit (void); -int gl_graph_get_all (gl_cfg_callback callback, - void *user_data); - graph_config_t *gl_graph_get_selected (void); -int gl_graph_instance_get_all (graph_config_t *cfg, - gl_inst_callback callback, void *user_data); +int gl_graph_get_all (graph_callback_t callback, void *user_data); + +int gl_graph_instance_get_all (graph_config_t *cfg, graph_inst_callback_t callback, + void *user_data); + +int gl_instance_get_all (graph_inst_callback_t callback, void *user_data); -int gl_instance_get_all (gl_inst_callback callback, +int gl_search (const char *search, graph_inst_callback_t callback, void *user_data); int gl_update (void);