X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=fcgi_test.c;h=a6ca107217399ca4bc7009de77dfe1dc72bf5246;hb=5cc627425e6502b8a025cee810c14136e69071cc;hp=e0d303575267dd6de122624e3d9fd0a3e762bf48;hpb=9e5770370bb085ccfb19f3dd14707542bf1475f1;p=collection4.git diff --git a/fcgi_test.c b/fcgi_test.c index e0d3035..a6ca107 100644 --- a/fcgi_test.c +++ b/fcgi_test.c @@ -16,6 +16,8 @@ #include "graph_list.h" #include "utils_params.h" +#include "action_list_graphs.h" + struct str_array_s { char **ptr; @@ -72,7 +74,7 @@ static int array_add (const char *entry, void *user_data) /* {{{ */ return (0); } /* }}} int array_add */ -static int print_graph (const graph_list_t *gl, void *user_data) +static int print_graph (const graph_list_t *gl, void *user_data) /* {{{ */ { if (gl == NULL) return (EINVAL); @@ -131,6 +133,10 @@ static int handle_request (void) /* {{{ */ { return (action_usage ()); } + else if (strcmp ("list_graphs", action) == 0) + { + return (action_list_graphs ()); + } else if (strcmp ("hello", action) == 0) { return (action_hello ());