X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/5aff007d8fcfb4c6cc3c3627ae15f45562db7a0d..cf451c90a160d8764b5e8ff6b0c1c10d038e59a1:/server/cgi.h diff --git a/server/cgi.h b/server/cgi.h index 2381c03..9fe27be 100644 --- a/server/cgi.h +++ b/server/cgi.h @@ -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: