]> git.cameronkatri.com Git - cgit.git/blob - html.h
Merge branch 'stable'
[cgit.git] / html.h
1 #ifndef HTML_H
2 #define HTML_H
3
4 extern int htmlfd;
5
6 extern void html_raw(const char *txt, size_t size);
7 extern void html(const char *txt);
8
9 __attribute__((format (printf,1,2)))
10 extern void htmlf(const char *format,...);
11
12 extern void html_status(int code, const char *msg, int more_headers);
13 extern void html_txt(const char *txt);
14 extern void html_ntxt(int len, const char *txt);
15 extern void html_attr(const char *txt);
16 extern void html_url_path(const char *txt);
17 extern void html_url_arg(const char *txt);
18 extern void html_hidden(const char *name, const char *value);
19 extern void html_option(const char *value, const char *text, const char *selected_value);
20 extern void html_intoption(int value, const char *text, int selected_value);
21 extern void html_link_open(const char *url, const char *title, const char *class);
22 extern void html_link_close(void);
23 extern void html_fileperm(unsigned short mode);
24 extern int html_include(const char *filename);
25
26 extern int http_parse_querystring(const char *txt, void (*fn)(const char *name, const char *value));
27
28 #endif /* HTML_H */