X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=graph_list.h;h=41e6ca3c577e29a9406f359b61df4d16eac1961a;hb=477b8a38dc1b3d0ae5e726f765722c962b2fcb46;hp=59104846b24b91742be6dfacd01a2fcea0ef0302;hpb=d71d8d8cf6e5c90dd29bd5f84cf1d12da8cbf2da;p=collection4.git diff --git a/graph_list.h b/graph_list.h index 5910484..41e6ca3 100644 --- a/graph_list.h +++ b/graph_list.h @@ -1,8 +1,8 @@ #ifndef GRAPH_LIST_H #define GRAPH_LIST_H 1 -struct graph_ident_s; -typedef struct graph_ident_s graph_ident_t; +#include "utils_array.h" +#include "graph_ident.h" struct graph_instance_s; typedef struct graph_instance_s graph_instance_t; @@ -27,6 +27,9 @@ int gl_graph_get_all (gl_cfg_callback callback, 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); @@ -38,9 +41,10 @@ int gl_instance_get_all (gl_inst_callback callback, int gl_instance_get_params (graph_config_t *cfg, graph_instance_t *inst, char *buffer, size_t buffer_size); -int gl_graph_get_title (graph_config_t *cfg, - char *buffer, size_t buffer_size); +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 { @@ -56,7 +60,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 : */