Add help text for keyd
[onak.git] / getcgi.h
1 #ifndef __GETCGI_H_
2 #define __GETCGI_H_
3
4 /**
5  *      txt2html - Takes a string and converts it to HTML.
6  *      @string: The string to HTMLize.
7  *
8  *      Takes a string and escapes any HTML entities.
9  */
10 char *txt2html(const char *string);
11
12 /*
13  *      start_html - Start HTML output.
14  *      @title: The title for the HTML.
15  *
16  *      Takes a title string and starts HTML output, including the
17  *      Content-Type header all the way up to <BODY>.
18  */
19 void start_html(const char *title);
20
21 /*
22  *      end_html - End HTML output.
23  *
24  *      Ends HTML output - closes the BODY and HTML tags.
25  */
26 void end_html(void);
27
28 char x2c(const char *what); 
29 void unescape_url(char *url); 
30 char **getcgivars(int argc, char *argv[]);
31
32 /**
33  *      cleanupcgi - free the memory allocated for our CGI parameters.
34  *      @cgivars: The CGI parameter list to free.
35  *
36  *      Frees up the elements of the CGI parameter array and then frees the
37  *      array.
38  */
39 void cleanupcgi(char **cgivars);
40
41 #endif /* __GETCGI_H_ */