Code

src/action_show_graph_json.c: Fix memory corruption.
[collection4.git] / src / graph_list.h
index b238a9ea01b264e99c759b058265d6a1235e4006..a2a61e62ec0fc0b4ca936d8ab7a5365e1543de79 100644 (file)
@@ -26,6 +26,8 @@
 
 #include "graph_types.h"
 #include "graph_ident.h"
+#include "utils_search.h"
+#include "data_provider.h"
 
 /*
  * Functions
@@ -34,15 +36,30 @@ 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);
 
 int gl_instance_get_all (graph_inst_callback_t callback, void *user_data);
 
+int gl_search (search_info_t *si, graph_inst_callback_t callback,
+    void *user_data);
+
 int gl_search_string (const char *search, graph_inst_callback_t callback,
     void *user_data);
 
@@ -52,7 +69,7 @@ int gl_search_field (graph_ident_field_t field, const char *field_value,
 int gl_foreach_host (int (*callback) (const char *host, void *user_data),
     void *user_data);
 
-int gl_update (void);
+int gl_update (_Bool request_served);
 
 #endif /* GRAPH_LIST_H */
 /* vim: set sw=2 sts=2 et fdm=marker : */