X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=graph_list.h;h=c17d6fc08c17c220c2e911eeb85f1e5cd0ff75f5;hb=af2ed61b280e1ec169aba2bcb9df30ac76b006d2;hp=f03122ac59f80078f9cff0c517b2fb857b605d3e;hpb=816c38cf8560599b827df4edc01227c4348162c3;p=collection4.git diff --git a/graph_list.h b/graph_list.h index f03122a..c17d6fc 100644 --- a/graph_list.h +++ b/graph_list.h @@ -1,17 +1,7 @@ #ifndef GRAPH_LIST_H #define GRAPH_LIST_H 1 -/* - * Data types - */ -struct graph_config_s; -typedef struct graph_config_s graph_config_t; - -#include "graph_def.h" -#include "graph_ident.h" #include "graph_instance.h" -#include "utils_array.h" -#include "oconfig.h" /* * Callback types @@ -25,24 +15,14 @@ typedef int (*gl_inst_callback) (graph_config_t *cfg, /* * Functions */ -int graph_config_add (const oconfig_item_t *ci); -int graph_config_submit (void); +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 *graph_get_selected (void); - -int gl_graph_get_title (graph_config_t *cfg, - char *buffer, size_t buffer_size); - -graph_ident_t *gl_graph_get_selector (graph_config_t *cfg); - -graph_instance_t *gl_graph_get_instances (graph_config_t *cfg); - -graph_def_t *gl_graph_get_defs (graph_config_t *cfg); - -int gl_graph_add_def (graph_config_t *cfg, graph_def_t *def); +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);