X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/763d5e6ad88ef3ba1cd1d7742d060e4f1e54c6b8..9944848ae35d2a1cc38c48eaee41920d0d510439:/server/cgi.h diff --git a/server/cgi.h b/server/cgi.h index 6c387d7..8a76d31 100644 --- a/server/cgi.h +++ b/server/cgi.h @@ -1,6 +1,6 @@ /* * This file is part of DisOrder. - * Copyright (C) 2004, 2005 Richard Kettlewell + * Copyright (C) 2004, 2005, 2007, 2008 Richard Kettlewell * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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, @@ -86,6 +91,8 @@ char *cgi_makeurl(const char *url, ...); const char *cgi_label(const char *key); /* look up the translated label @key@ */ +int cgi_label_exists(const char *key); + char **cgi_columns(const char *name, int *nheadings); /* return the list of columns for @name@ */