X-Git-Url: https://the.earth.li/gitweb/?p=onak.git;a=blobdiff_plain;f=getcgi.h;fp=getcgi.h;h=0000000000000000000000000000000000000000;hp=1495671ae486e17b5dc4ee525d873956ebd5acc9;hb=f6d38365b7e7e1e88ba02136ffe6f0fb08903ef0;hpb=b767e3e90280a1222fc4404cbd4c832342c9382d diff --git a/getcgi.h b/getcgi.h deleted file mode 100644 index 1495671..0000000 --- a/getcgi.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * getcgivars.c - routine to read CGI input variables into an array. - * - * Copyright 2002 Jonathan McDowell - * - * 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 the Free - * Software Foundation; version 2 of the License. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along with - * this program. If not, see . - */ - -#ifndef __GETCGI_H_ -#define __GETCGI_H_ - -/** - * txt2html - Takes a string and converts it to HTML. - * @string: The string to HTMLize. - * - * Takes a string and escapes any HTML entities. - */ -char *txt2html(const char *string); - -/* - * start_html - Start HTML output. - * @title: The title for the HTML. - * - * Takes a title string and starts HTML output, including the - * Content-Type header all the way up to . - */ -void start_html(const char *title); - -/* - * end_html - End HTML output. - * - * Ends HTML output - closes the BODY and HTML tags. - */ -void end_html(void); - -char x2c(const char *what); -void unescape_url(char *url); -char **getcgivars(int argc, char *argv[]); - -/** - * cleanupcgi - free the memory allocated for our CGI parameters. - * @cgivars: The CGI parameter list to free. - * - * Frees up the elements of the CGI parameter array and then frees the - * array. - */ -void cleanupcgi(char **cgivars); - -#endif /* __GETCGI_H_ */