summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 60f9e98)
raw | patch | inline | side by side (parent: 60f9e98)
author | Florian Forster <ff@octo.it> | |
Wed, 1 Sep 2010 14:55:11 +0000 (16:55 +0200) | ||
committer | Florian Forster <ff@octo.it> | |
Wed, 1 Sep 2010 14:55:11 +0000 (16:55 +0200) |
src/graph_list.c | patch | blob | history | |
src/graph_list.h | patch | blob | history |
diff --git a/src/graph_list.c b/src/graph_list.c
index ed8d41a78cf2f1cce4bf73ed9de7c21902c1a880..ac4bfac78a3082e76293e98637a497c088142aaa 100644 (file)
--- a/src/graph_list.c
+++ b/src/graph_list.c
return (0);
} /* }}} int gl_update_cache */
-static int gl_scan_directory (void)
-{
- return (-1);
-} /* }}} int gl_scan_directory */
-
/*
* JSON parsing functions
*/
return (0);
} /* }}} int graph_config_submit */
-int gl_register_ident (const char *provider, const graph_ident_t *ident)
+int gl_register_ident (const char *provider, const graph_ident_t *ident) /* {{{ */
{
char *ident_str = ident_to_string (ident);
return (0);
} /* }}} int gl_register_ident */
+int gl_register_data_provider (const char *name, data_provider_t *p) /* {{{ */
+{
+ fprintf (stderr, "gl_register_data_provider (name = %s, ptr = %p)\n",
+ name, (void *) p);
+
+ return (0);
+} /* }}} int gl_register_data_provider */
+
int gl_graph_get_all (_Bool include_dynamic, /* {{{ */
graph_callback_t callback, void *user_data)
{
diff --git a/src/graph_list.h b/src/graph_list.h
index 596235f308a8868ddb98eb70d3ebd8beba5bb424..f388fbe4e93ae4afc18f8ca377abd02634ab44cc 100644 (file)
--- a/src/graph_list.h
+++ b/src/graph_list.h
#include "graph_types.h"
#include "graph_ident.h"
#include "utils_search.h"
+#include "data_provider.h"
/*
* Functions
int gl_config_submit (void);
int gl_register_ident (const char *provider, const graph_ident_t *ident);
+int gl_register_data_provider (const char *name, data_provider_t *p);
graph_config_t *gl_graph_get_selected (void);