From f0aa70e4541cd0dd36a436617e7357b3861fe4ba Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 12 Jul 2010 10:34:23 +0200 Subject: [PATCH] src/graph_list.[ch]: Rename "gl_search" to "gl_search_string". --- src/action_search.c | 2 +- src/action_search_json.c | 2 +- src/graph_list.c | 4 ++-- src/graph_list.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/action_search.c b/src/action_search.c index 9687460..fbdf8b8 100644 --- a/src/action_search.c +++ b/src/action_search.c @@ -186,7 +186,7 @@ static int print_search_result (void *user_data) /* {{{ */ 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); diff --git a/src/action_search_json.c b/src/action_search_json.c index 53501fe..6fcfa67 100644 --- a/src/action_search_json.c +++ b/src/action_search_json.c @@ -149,7 +149,7 @@ static int list_graphs_json (const char *term) /* {{{ */ 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 e0f2b97..ef52cb3 100644 --- a/src/graph_list.c +++ b/src/graph_list.c @@ -381,7 +381,7 @@ int gl_instance_get_all (graph_inst_callback_t callback, /* {{{ */ } /* }}} 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; @@ -409,7 +409,7 @@ int gl_search (const char *term, graph_inst_callback_t callback, /* {{{ */ } 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 d0022d7..b238a9e 100644 --- a/src/graph_list.h +++ b/src/graph_list.h @@ -43,7 +43,7 @@ int gl_graph_instance_get_all (graph_config_t *cfg, graph_inst_callback_t callba 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, -- 2.11.0