From: Florian Forster Date: Wed, 1 Sep 2010 14:55:11 +0000 (+0200) Subject: src/graph_list.[ch]: Implement "gl_register_data_provider" dummy function. X-Git-Tag: v4.0.0~55 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c182e93607995902b9211be0041e4e8f8fa8ba12;p=collection4.git src/graph_list.[ch]: Implement "gl_register_data_provider" dummy function. --- diff --git a/src/graph_list.c b/src/graph_list.c index ed8d41a..ac4bfac 100644 --- a/src/graph_list.c +++ b/src/graph_list.c @@ -344,11 +344,6 @@ static int gl_update_cache (void) /* {{{ */ return (0); } /* }}} int gl_update_cache */ -static int gl_scan_directory (void) -{ - return (-1); -} /* }}} int gl_scan_directory */ - /* * JSON parsing functions */ @@ -780,7 +775,7 @@ int gl_config_submit (void) /* {{{ */ 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); @@ -791,6 +786,14 @@ int gl_register_ident (const char *provider, const graph_ident_t *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 596235f..f388fbe 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 @@ -36,6 +37,7 @@ int gl_add_graph (graph_config_t *cfg); 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);