about summary refs log tree commit diff stats
path: root/html.h
diff options
context:
space:
mode:
Diffstat (limited to 'html.h')
-rw-r--r--html.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/html.h b/html.h index a55d4b2..1135fb8 100644 --- a/html.h +++ b/html.h
@@ -5,20 +5,23 @@ extern int htmlfd;
5 5
6extern void html_raw(const char *txt, size_t size); 6extern void html_raw(const char *txt, size_t size);
7extern void html(const char *txt); 7extern void html(const char *txt);
8
9__attribute__((format (printf,1,2)))
8extern void htmlf(const char *format,...); 10extern void htmlf(const char *format,...);
11
9extern void html_status(int code, const char *msg, int more_headers); 12extern void html_status(int code, const char *msg, int more_headers);
10extern void html_txt(char *txt); 13extern void html_txt(const char *txt);
11extern void html_ntxt(int len, char *txt); 14extern void html_ntxt(int len, const char *txt);
12extern void html_attr(char *txt); 15extern void html_attr(const char *txt);
13extern void html_url_path(char *txt); 16extern void html_url_path(const char *txt);
14extern void html_url_arg(char *txt); 17extern void html_url_arg(const char *txt);
15extern void html_hidden(char *name, char *value); 18extern void html_hidden(const char *name, const char *value);
16extern void html_option(char *value, char *text, char *selected_value); 19extern void html_option(const char *value, const char *text, const char *selected_value);
17extern void html_link_open(char *url, char *title, char *class); 20extern void html_link_open(const char *url, const char *title, const char *class);
18extern void html_link_close(void); 21extern void html_link_close(void);
19extern void html_fileperm(unsigned short mode); 22extern void html_fileperm(unsigned short mode);
20extern int html_include(const char *filename); 23extern int html_include(const char *filename);
21 24
22extern int http_parse_querystring(char *txt, void (*fn)(const char *name, const char *value)); 25extern int http_parse_querystring(const char *txt, void (*fn)(const char *name, const char *value));
23 26
24#endif /* HTML_H */ 27#endif /* HTML_H */