utils_params.o: utils_params.c utils_params.h
+action_graph.o: action_graph.c action_graph.h
+
action_list_graphs.o: action_list_graphs.c action_list_graphs.h
test: test.c utils_params.o
test.fcgi: LDLIBS = -lfcgi
-test.fcgi: test.fcgi.c common.o graph_list.o utils_params.o action_list_graphs.o
+test.fcgi: test.fcgi.c common.o graph_list.o utils_params.o action_graph.o action_list_graphs.o
.PHONY: clean
--- /dev/null
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <errno.h>
+
+#include <fcgiapp.h>
+#include <fcgi_stdio.h>
+
+#include "action_graph.h"
+#include "graph_list.h"
+#include "utils_params.h"
+
+int action_graph (void)
+{
+ printf ("Content-Type: text/plain\n\n"
+ "Hello, this is %s\n", __func__);
+
+ return (0);
+} /* }}} int action_graph */
+
+/* vim: set sw=2 sts=2 et fdm=marker : */
--- /dev/null
+#ifndef ACTION_GRAPH_H
+#define ACTION_GRAPH_H 1
+
+int action_graph (void);
+
+#endif /* ACTION_GRAPH_H */
+/* vim: set sw=2 sts=2 et fdm=marker : */
#include "graph_list.h"
#include "utils_params.h"
+#include "action_graph.h"
#include "action_list_graphs.h"
struct action_s
static const action_t actions[] =
{
+ { "graph", action_graph },
{ "list_graphs", action_list_graphs },
{ "usage", action_usage }
};