summaryrefslogtreecommitdiffabout
path: root/html.h
authorLars Hjemli <hjemli@gmail.com>2008-04-08 19:29:21 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2008-04-08 19:29:21 (UTC)
commit23296ad648c0e2a9e3cf40a3de322b10ad25cce3 (patch) (unidiff)
tree136493d8228b0ff4971feb06b0e8aee296367b00 /html.h
parente2a44cf0923398396b7a321d5ce894ad3bf6f580 (diff)
parentc6f747649ace1a92ed5dfaae9cc1ea3affe0bf51 (diff)
downloadcgit-23296ad648c0e2a9e3cf40a3de322b10ad25cce3.zip
cgit-23296ad648c0e2a9e3cf40a3de322b10ad25cce3.tar.gz
cgit-23296ad648c0e2a9e3cf40a3de322b10ad25cce3.tar.bz2
Merge branch 'lh/cleanup'
* lh/cleanup: (21 commits) Reset ctx.repo to NULL when the config parser is finished Move cgit_parse_query() from parsing.c to html.c as http_parse_querystring() Move function for configfile parsing into configfile.[ch] Add cache.h Remove global and obsolete cgit_cmd Makefile: copy the QUIET constructs from the Makefile in git.git Move cgit_version from shared.c to cgit.c Makefile: autobuild dependency rules Initial Makefile cleanup Move non-generic functions from shared.c to cgit.c Add ui-shared.h Add separate header-files for each page/view Refactor snapshot support Add command dispatcher Remove obsolete cacheitem parameter to ui-functions Add struct cgit_page to cgit_context Introduce html.h Improve initialization of git directory Move cgit_repo into cgit_context Add all config variables into struct cgit_context ...
Diffstat (limited to 'html.h') (more/less context) (ignore whitespace changes)
-rw-r--r--html.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/html.h b/html.h
new file mode 100644
index 0000000..e6fdc54
--- a/dev/null
+++ b/html.h
@@ -0,0 +1,20 @@
1#ifndef HTML_H
2#define HTML_H
3
4extern int htmlfd;
5
6extern void html(const char *txt);
7extern void htmlf(const char *format,...);
8extern void html_txt(char *txt);
9extern void html_ntxt(int len, char *txt);
10extern void html_attr(char *txt);
11extern void html_hidden(char *name, char *value);
12extern void html_option(char *value, char *text, char *selected_value);
13extern void html_link_open(char *url, char *title, char *class);
14extern void html_link_close(void);
15extern void html_fileperm(unsigned short mode);
16extern int html_include(const char *filename);
17
18extern int http_parse_querystring(char *txt, void (*fn)(const char *name, const char *value));
19
20#endif /* HTML_H */