summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 693d0fc)
raw | patch | inline | side by side (parent: 693d0fc)
author | Florian Forster <ff@octo.it> | |
Mon, 12 Jul 2010 08:34:23 +0000 (10:34 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 12 Jul 2010 08:34:23 +0000 (10:34 +0200) |
src/action_search.c | patch | blob | history | |
src/action_search_json.c | patch | blob | history | |
src/graph_list.c | patch | blob | history | |
src/graph_list.h | patch | blob | history |
diff --git a/src/action_search.c b/src/action_search.c
index 96874608ebf132b2d654a2c5625ddbf7877ed21c..fbdf8b83223d111b46a6ec5441b1da8e4b7dd767 100644 (file)
--- a/src/action_search.c
+++ b/src/action_search.c
gl_search_field (GIF_TYPE_INSTANCE, term_lc + strlen ("type_instance:"),
print_graph_inst_html, /* user_data = */ &cb_data);
else
- gl_search (term_lc,
+ gl_search_string (term_lc,
print_graph_inst_html, /* user_data = */ &cb_data);
free (term_lc);
index 53501fe72c523d6a40a6b4e7dcc993103067a409..6fcfa67c5e50cfb7257b19a8942eef161e866731 100644 (file)
--- a/src/action_search_json.c
+++ b/src/action_search_json.c
if (term == NULL)
gl_instance_get_all (json_print_graph_instance, /* user_data = */ &data);
else
- gl_search (term, json_print_graph_instance, /* user_data = */ &data);
+ gl_search_string (term, json_print_graph_instance, /* user_data = */ &data);
if (!data.first)
json_end_graph ();
diff --git a/src/graph_list.c b/src/graph_list.c
index e0f2b97d8b32151e7fb9a29bfc3ee9a897b580e9..ef52cb362106092ed9de51115b5edb4d85d4b9db 100644 (file)
--- a/src/graph_list.c
+++ b/src/graph_list.c
} /* }}} int gl_instance_get_all */
/* }}} gl_instance_get_all, gl_graph_instance_get_all */
-int gl_search (const char *term, graph_inst_callback_t callback, /* {{{ */
+int gl_search_string (const char *term, graph_inst_callback_t callback, /* {{{ */
void *user_data)
{
size_t i;
}
return (0);
-} /* }}} int gl_search */
+} /* }}} int gl_search_string */
int gl_search_field (graph_ident_field_t field, /* {{{ */
const char *field_value,
diff --git a/src/graph_list.h b/src/graph_list.h
index d0022d788123bcbeab920084ddb5cdc056a5adfa..b238a9ea01b264e99c759b058265d6a1235e4006 100644 (file)
--- a/src/graph_list.h
+++ b/src/graph_list.h
int gl_instance_get_all (graph_inst_callback_t callback, void *user_data);
-int gl_search (const char *search, graph_inst_callback_t callback,
+int gl_search_string (const char *search, graph_inst_callback_t callback,
void *user_data);
int gl_search_field (graph_ident_field_t field, const char *field_value,