X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=graph_list.h;h=b9045d5d58574ae29526f03330bbd53dda62da1d;hb=99a0e023a458598597c2632cc4a8e4f3b2fd6b77;hp=567575b8f3a29abbe283851f37fb0d81e89ff8fe;hpb=0bdac0286e8d3c42dd8d5c3058d822e9ad0e6313;p=collection4.git diff --git a/graph_list.h b/graph_list.h index 567575b..b9045d5 100644 --- a/graph_list.h +++ b/graph_list.h @@ -2,9 +2,7 @@ #define GRAPH_LIST_H 1 #include "utils_array.h" - -struct graph_ident_s; -typedef struct graph_ident_s graph_ident_t; +#include "graph_ident.h" struct graph_instance_s; typedef struct graph_instance_s graph_instance_t; @@ -24,8 +22,6 @@ typedef int (*gl_inst_callback) (graph_config_t *cfg, /* * Functions */ -char *ident_to_file (const graph_ident_t *ident); - int gl_graph_get_all (gl_cfg_callback callback, void *user_data); @@ -34,6 +30,8 @@ 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); + int gl_graph_instance_get_all (graph_config_t *cfg, gl_inst_callback callback, void *user_data); @@ -48,6 +46,8 @@ int gl_instance_get_params (graph_config_t *cfg, graph_instance_t *inst, int gl_instance_get_rrdargs (graph_config_t *cfg, graph_instance_t *inst, str_array_t *args); +graph_ident_t *gl_instance_get_selector (graph_instance_t *inst); + struct graph_list_s { char *host; @@ -62,7 +62,6 @@ typedef int (*gl_callback) ( const graph_list_t *, void *user_data); int gl_update (void); -int gl_foreach (gl_callback callback, void *user_data); #endif /* GRAPH_LIST_H */ /* vim: set sw=2 sts=2 et fdm=marker : */