summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 25849a1)
raw | patch | inline | side by side (parent: 25849a1)
author | Florian Forster <ff@octo.it> | |
Mon, 21 Jun 2010 10:30:07 +0000 (12:30 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 21 Jun 2010 10:30:07 +0000 (12:30 +0200) |
src/graph.c | patch | blob | history | |
src/graph.h | patch | blob | history |
diff --git a/src/graph.c b/src/graph.c
index d314bcc1af2070acf4019f5765922096494a4df5..a503bfe1e3c3fcb5c8d353e2a4a54891c770feeb 100644 (file)
--- a/src/graph.c
+++ b/src/graph.c
return ((*data->callback) (data->cfg, inst, data->user_data));
} /* }}} int graph_search_submit */
+int graph_inst_foreach (graph_config_t *cfg, /* {{{ */
+ inst_callback_t cb, void *user_data)
+{
+ return (inst_foreach (cfg->instances, cb, user_data));
+} /* }}} int graph_inst_foreach */
+
int graph_search (graph_config_t *cfg, const char *term, /* {{{ */
graph_inst_callback_t callback,
void *user_data)
diff --git a/src/graph.h b/src/graph.h
index 57a866f996cc090c2e392adb62b8f8be1c8d1b71..98014c556b94f917e0030f1add1f4a9116c6340c 100644 (file)
--- a/src/graph.h
+++ b/src/graph.h
_Bool graph_matches (graph_config_t *cfg, const graph_ident_t *ident);
+int graph_inst_foreach (graph_config_t *cfg,
+ inst_callback_t cb, void *user_data);
+
int graph_search (graph_config_t *cfg, const char *term,
graph_inst_callback_t callback, void *user_data);