X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Faction_search_json.c;h=834e07e83f339739198d379438ba3ad2675ea386;hb=6760d3740f2c8c7b30310b7f3065147c34ff9802;hp=1b75f43cfdcf417a583f2e5222d87196172fb0a0;hpb=bd4c412a357988288796a473ad0ea7adb6745db0;p=collection4.git diff --git a/src/action_search_json.c b/src/action_search_json.c index 1b75f43..834e07e 100644 --- a/src/action_search_json.c +++ b/src/action_search_json.c @@ -1,3 +1,26 @@ +/** + * collection4 - action_search_json.c + * Copyright (C) 2010 Florian octo Forster + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + * + * Authors: + * Florian octo Forster + **/ + #include #include #include @@ -126,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 (); @@ -141,8 +164,6 @@ int action_search_json (void) /* {{{ */ char *search; int status; - gl_update (); - search = strtolower_copy (param ("q")); status = list_graphs_json (search);