From: Florian Forster Date: Mon, 12 Jul 2010 09:31:21 +0000 (+0200) Subject: src/graph.[ch]: Rename "graph_inst_search" to "graph_search_inst_string". X-Git-Tag: v4.0.0~104 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=50d5299ef04975d005f86a0ec8a0556969129cd1;p=collection4.git src/graph.[ch]: Rename "graph_inst_search" to "graph_search_inst_string". --- diff --git a/src/graph.c b/src/graph.c index 75c83b1..66dbd47 100644 --- a/src/graph.c +++ b/src/graph.c @@ -408,7 +408,7 @@ int graph_inst_find_all_matching (graph_config_t *cfg, /* {{{ */ return (0); } /* }}} int graph_inst_find_all_matching */ -int graph_inst_search (graph_config_t *cfg, const char *term, /* {{{ */ +int graph_search_inst_string (graph_config_t *cfg, const char *term, /* {{{ */ graph_inst_callback_t cb, void *user_data) { @@ -419,7 +419,7 @@ int graph_inst_search (graph_config_t *cfg, const char *term, /* {{{ */ status = graph_get_title (cfg, buffer, sizeof (buffer)); if (status != 0) { - fprintf (stderr, "graph_inst_search: graph_get_title failed\n"); + fprintf (stderr, "graph_search_inst_string: graph_get_title failed\n"); return (status); } @@ -448,7 +448,7 @@ int graph_inst_search (graph_config_t *cfg, const char *term, /* {{{ */ } return (0); -} /* }}} int graph_inst_search */ +} /* }}} int graph_search_inst_string */ int graph_inst_search_field (graph_config_t *cfg, /* {{{ */ graph_ident_field_t field, const char *field_value, diff --git a/src/graph.h b/src/graph.h index 69a3fbe..30a589f 100644 --- a/src/graph.h +++ b/src/graph.h @@ -81,7 +81,7 @@ int graph_inst_find_all_matching (graph_config_t *cfg, const graph_ident_t *ident, graph_inst_callback_t callback, void *user_data); -int graph_inst_search (graph_config_t *cfg, const char *term, +int graph_search_inst_string (graph_config_t *cfg, const char *term, graph_inst_callback_t callback, void *user_data); /* Iterates over all instances and calls "inst_matches_field". If that method diff --git a/src/graph_list.c b/src/graph_list.c index 89f3e5d..cf0ca4a 100644 --- a/src/graph_list.c +++ b/src/graph_list.c @@ -390,7 +390,7 @@ int gl_search_string (const char *term, graph_inst_callback_t callback, /* {{{ * { int status; - status = graph_inst_search (gl_active[i], term, + status = graph_search_inst_string (gl_active[i], term, /* callback = */ callback, /* user data = */ user_data); if (status != 0) @@ -401,7 +401,7 @@ int gl_search_string (const char *term, graph_inst_callback_t callback, /* {{{ * { int status; - status = graph_inst_search (gl_dynamic[i], term, + status = graph_search_inst_string (gl_dynamic[i], term, /* callback = */ callback, /* user data = */ user_data); if (status != 0)