projects
/
collection4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/graph{,_instance}.[ch]: Implement graph instances as an array in graph_config_t.
[collection4.git]
/
src
/
graph_list.c
diff --git
a/src/graph_list.c
b/src/graph_list.c
index
f3e9738
..
62a4ed3
100644
(file)
--- a/
src/graph_list.c
+++ b/
src/graph_list.c
@@
-236,8
+236,7
@@
int gl_graph_instance_get_all (graph_config_t *cfg, /* {{{ */
if ((cfg == NULL) || (callback == NULL))
return (EINVAL);
if ((cfg == NULL) || (callback == NULL))
return (EINVAL);
- return (inst_foreach (graph_get_instances (cfg),
- gl_inst_callback_handler, &data));
+ return (graph_inst_foreach (cfg, gl_inst_callback_handler, &data));
} /* }}} int gl_graph_instance_get_all */
int gl_instance_get_all (graph_inst_callback_t callback, /* {{{ */
} /* }}} int gl_graph_instance_get_all */
int gl_instance_get_all (graph_inst_callback_t callback, /* {{{ */
@@
-269,7
+268,7
@@
int gl_search (const char *term, graph_inst_callback_t callback, /* {{{ */
{
int status;
{
int status;
- status = graph_search (gl_active[i], term,
+ status = graph_
inst_
search (gl_active[i], term,
/* callback = */ callback,
/* user data = */ user_data);
if (status != 0)
/* callback = */ callback,
/* user data = */ user_data);
if (status != 0)