projects
/
collection4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the "list_graphs" action.
[collection4.git]
/
fcgi_test.c
diff --git
a/fcgi_test.c
b/fcgi_test.c
index
e0d3035
..
a6ca107
100644
(file)
--- a/
fcgi_test.c
+++ b/
fcgi_test.c
@@
-16,6
+16,8
@@
#include "graph_list.h"
#include "utils_params.h"
#include "graph_list.h"
#include "utils_params.h"
+#include "action_list_graphs.h"
+
struct str_array_s
{
char **ptr;
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 */
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);
{
if (gl == NULL)
return (EINVAL);
@@
-131,6
+133,10
@@
static int handle_request (void) /* {{{ */
{
return (action_usage ());
}
{
return (action_usage ());
}
+ else if (strcmp ("list_graphs", action) == 0)
+ {
+ return (action_list_graphs ());
+ }
else if (strcmp ("hello", action) == 0)
{
return (action_hello ());
else if (strcmp ("hello", action) == 0)
{
return (action_hello ());