X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmain.c;h=5dc526422735559e5f9547ad7069f4e0f85dab73;hb=6261a817494a678f8bc5dca6718c54c51e6421e0;hp=097c55cfee70700ea48e6622686f2bacc445c36f;hpb=0ab3085f89e64eecd67d3179ea87f0463e918a10;p=collection4.git diff --git a/src/main.c b/src/main.c index 097c55c..5dc5264 100644 --- a/src/main.c +++ b/src/main.c @@ -1,3 +1,26 @@ +/** + * collection4 - main.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 @@ -11,10 +34,13 @@ #include "common.h" #include "graph_list.h" -#include "utils_params.h" +#include "utils_cgi.h" #include "action_graph.h" #include "action_list_graphs.h" +#include "action_search_json.h" +#include "action_show_graph.h" +#include "action_show_instance.h" /* Include this last, so the macro magic of doesn't interfere * with our own header files. */ @@ -34,6 +60,9 @@ static const action_t actions[] = { { "graph", action_graph }, { "list_graphs", action_list_graphs }, + { "search_json", action_search_json }, + { "show_graph", action_show_graph }, + { "show_instance", action_show_instance }, { "usage", action_usage } }; static const size_t actions_num = sizeof (actions) / sizeof (actions[0]);