X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fgraph_list.h;h=a2a61e62ec0fc0b4ca936d8ab7a5365e1543de79;hb=110247dd90ceaec4d9fee197fce64cfd63101519;hp=f7cb40e7cd729f5b7b9e4ebcfe9a760f962bf9c1;hpb=01de7d16f1e8dfdf00a31de19e3719b45752eb4d;p=collection4.git diff --git a/src/graph_list.h b/src/graph_list.h index f7cb40e..a2a61e6 100644 --- a/src/graph_list.h +++ b/src/graph_list.h @@ -27,6 +27,7 @@ #include "graph_types.h" #include "graph_ident.h" #include "utils_search.h" +#include "data_provider.h" /* * Functions @@ -35,9 +36,21 @@ int gl_add_graph (graph_config_t *cfg); int gl_config_submit (void); +int gl_register_data_provider (const char *name, data_provider_t *p); + +/* + * Returns the currently "selected" graph config. + * + * This function evaluates the HTTP query parameters and searches for a + * matching graph config structure. If a matching graph config is found, it + * will return a pointer to the graph config. Do *not* free or call + * graph_destroy() on this pointer. If no graph is found or parameters are + * incomplete, NULL is returned. + */ graph_config_t *gl_graph_get_selected (void); -int gl_graph_get_all (graph_callback_t callback, void *user_data); +int gl_graph_get_all (_Bool include_dynamic, + 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);