all repos — cgit @ 33414d7869aa55aaccd45cdb82268d454cb79863

a hyperfast web frontend for git written in c

html.h (view raw)

 1#ifndef HTML_H
 2#define HTML_H
 3
 4#include "cgit.h"
 5
 6extern void html_raw(const char *txt, size_t size);
 7extern void html(const char *txt);
 8
 9__attribute__((format (printf,1,2)))
10extern void htmlf(const char *format,...);
11
12__attribute__((format (printf,1,2)))
13extern void html_txtf(const char *format,...);
14
15__attribute__((format (printf,1,0)))
16extern void html_vtxtf(const char *format, va_list ap);
17
18__attribute__((format (printf,1,2)))
19extern void html_attrf(const char *format,...);
20
21extern void html_txt(const char *txt);
22extern ssize_t html_ntxt(const char *txt, size_t len);
23extern void html_attr(const char *txt);
24extern void html_url_path(const char *txt);
25extern void html_url_arg(const char *txt);
26extern void html_header_arg_in_quotes(const char *txt);
27extern void html_hidden(const char *name, const char *value);
28extern void html_option(const char *value, const char *text, const char *selected_value);
29extern void html_intoption(int value, const char *text, int selected_value);
30extern void html_link_open(const char *url, const char *title, const char *class);
31extern void html_link_close(void);
32extern void html_fileperm(unsigned short mode);
33extern int html_include(const char *filename);
34
35extern void http_parse_querystring(const char *txt, void (*fn)(const char *name, const char *value));
36
37#endif /* HTML_H */