chiark / gitweb /
Shift many cgi_ functions into lib/, and add a test for them. The
[disorder] / server / cgi.h
index 2381c033bf609b12962b135b93d99d94f2434211..9fe27be30175a7c61ff686c97bb1c1c389acdd33 100644 (file)
@@ -18,8 +18,8 @@
  * USA
  */
 
-#ifndef CGI_H
-#define CGI_H
+#ifndef SERVER_CGI_H
+#define SERVER_CGI_H
 
 extern struct kvp *cgi_args;
 
@@ -65,6 +65,11 @@ struct cgi_expansion {
   void (*handler)(int nargs, char **args, cgi_sink *output, void *u);
 };
 
+void cgi_define(const char *name,
+               int nargs,
+               char **args,
+               const char *value);
+
 void cgi_expand(const char *name,
                const struct cgi_expansion *expansions,
                size_t nexpansions,
@@ -99,7 +104,7 @@ const char *cgi_transform(const char *type,
 void cgi_set_option(const char *name, const char *value);
 /* set an option */
 
-#endif /* CGI_H */
+#endif /* SERVER_CGI_H */
 
 /*
 Local Variables: