src/graph.[ch]: Rename "graph_inst_search" to "graph_search_inst_string".
authorFlorian Forster <ff@octo.it>
Mon, 12 Jul 2010 09:31:21 +0000 (11:31 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 12 Jul 2010 09:31:21 +0000 (11:31 +0200)
src/graph.c
src/graph.h
src/graph_list.c

index 75c83b1..66dbd47 100644 (file)
@@ -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,
index 69a3fbe..30a589f 100644 (file)
@@ -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
index 89f3e5d..cf0ca4a 100644 (file)
@@ -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)