X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=graph_list.h;h=567575b8f3a29abbe283851f37fb0d81e89ff8fe;hb=b2db68ebb7acdb345c07985fcdb35dcfbb36d4aa;hp=605571e1b8762b8e6ebdd7933e8c8ed7e7d4e408;hpb=bdd9ce2f4b4fc04f66fe96da300cc10d8f4222ee;p=collection4.git diff --git a/graph_list.h b/graph_list.h index 605571e..567575b 100644 --- a/graph_list.h +++ b/graph_list.h @@ -1,6 +1,8 @@ #ifndef GRAPH_LIST_H #define GRAPH_LIST_H 1 +#include "utils_array.h" + struct graph_ident_s; typedef struct graph_ident_s graph_ident_t; @@ -22,20 +24,29 @@ 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); +graph_config_t *graph_get_selected (void); + +int gl_graph_get_title (graph_config_t *cfg, + char *buffer, size_t buffer_size); + int gl_graph_instance_get_all (graph_config_t *cfg, gl_inst_callback callback, void *user_data); +graph_instance_t *inst_get_selected (graph_config_t *cfg); + int gl_instance_get_all (gl_inst_callback callback, void *user_data); -int gl_instance_get_ident (graph_instance_t *inst, +int gl_instance_get_params (graph_config_t *cfg, graph_instance_t *inst, char *buffer, size_t buffer_size); - - +int gl_instance_get_rrdargs (graph_config_t *cfg, graph_instance_t *inst, + str_array_t *args); struct graph_list_s {