]> granicus.if.org Git - cgit/blob - html.h
git: update to v2.33.0
[cgit] / html.h
1 #ifndef HTML_H
2 #define HTML_H
3
4 #include "cgit.h"
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 __attribute__((format (printf,1,2)))
13 extern void html_txtf(const char *format,...);
14
15 __attribute__((format (printf,1,0)))
16 extern void html_vtxtf(const char *format, va_list ap);
17
18 __attribute__((format (printf,1,2)))
19 extern void html_attrf(const char *format,...);
20
21 extern void html_txt(const char *txt);
22 extern ssize_t html_ntxt(const char *txt, size_t len);
23 extern void html_attr(const char *txt);
24 extern void html_url_path(const char *txt);
25 extern void html_url_arg(const char *txt);
26 extern void html_header_arg_in_quotes(const char *txt);
27 extern void html_hidden(const char *name, const char *value);
28 extern void html_option(const char *value, const char *text, const char *selected_value);
29 extern void html_intoption(int value, const char *text, int selected_value);
30 extern void html_link_open(const char *url, const char *title, const char *class);
31 extern void html_link_close(void);
32 extern void html_fileperm(unsigned short mode);
33 extern int html_include(const char *filename);
34
35 extern void http_parse_querystring(const char *txt, void (*fn)(const char *name, const char *value));
36
37 #endif /* HTML_H */