log: move layout into page function
[cgit.git] / html.h
blobc5547631f850664b2ddfc01046c7fc3e50af687d
1 #ifndef HTML_H
2 #define HTML_H
4 #include "cgit.h"
6 extern void html_raw(const char *txt, size_t size);
7 extern void html(const char *txt);
9 __attribute__((format (printf,1,2)))
10 extern void htmlf(const char *format,...);
12 __attribute__((format (printf,1,2)))
13 extern void html_txtf(const char *format,...);
15 __attribute__((format (printf,1,0)))
16 extern void html_vtxtf(const char *format, va_list ap);
18 __attribute__((format (printf,1,2)))
19 extern void html_attrf(const char *format,...);
21 extern void html_txt(const char *txt);
22 extern void html_ntxt(int len, const char *txt);
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_hidden(const char *name, const char *value);
27 extern void html_option(const char *value, const char *text, const char *selected_value);
28 extern void html_intoption(int value, const char *text, int selected_value);
29 extern void html_link_open(const char *url, const char *title, const char *class);
30 extern void html_link_close(void);
31 extern void html_fileperm(unsigned short mode);
32 extern int html_include(const char *filename);
34 extern int http_parse_querystring(const char *txt, void (*fn)(const char *name, const char *value));
36 #endif /* HTML_H */