index 1b75f43cfdcf417a583f2e5222d87196172fb0a0..834e07e83f339739198d379438ba3ad2675ea386 100644 (file)
--- a/src/action_search_json.c
+++ b/src/action_search_json.c
+/**
+ * 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 <ff at octo.it>
+ **/
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
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 ();
char *search;
int status;
- gl_update ();
-
search = strtolower_copy (param ("q"));
status = list_graphs_json (search);