X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=getcgi.h;h=a28fd165f3d68ad94251071e110455ba7da8801e;hb=68784e7ff81a477fd4a973ba302d96285def9b7d;hp=58d009bd9afa302535d51c4be759043dd7cb2de1;hpb=4b8483ae278577a3adc8d84da81d77019704466f;p=onak.git diff --git a/getcgi.h b/getcgi.h index 58d009b..a28fd16 100644 --- a/getcgi.h +++ b/getcgi.h @@ -9,8 +9,33 @@ */ char *txt2html(const char *string); -char x2c(char *what); +/* + * 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_ */