projects
/
collection4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
60f9e98
)
src/graph_list.[ch]: Implement "gl_register_data_provider" dummy function.
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
ed8d41a
..
ac4bfac
100644
(file)
--- 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 */
return (0);
} /* }}} int gl_update_cache */
-static int gl_scan_directory (void)
-{
- return (-1);
-} /* }}} int gl_scan_directory */
-
/*
* JSON parsing functions
*/
/*
* JSON parsing functions
*/
@@
-780,7
+775,7
@@
int gl_config_submit (void) /* {{{ */
return (0);
} /* }}} int graph_config_submit */
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);
{
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 */
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)
{
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
(file)
--- 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 "graph_types.h"
#include "graph_ident.h"
#include "utils_search.h"
+#include "data_provider.h"
/*
* Functions
/*
* 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_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);
graph_config_t *gl_graph_get_selected (void);