diff options
author | Lars Hjemli | 2006-12-09 15:18:17 +0100 |
---|---|---|
committer | Lars Hjemli | 2006-12-09 15:18:17 +0100 |
commit | 0d169ada2ba81210ab1191a5f2212662e90db77e (patch) | |
tree | 402b54583db269323ebb28e5fbf2075c4c1b3d85 /cgit.h | |
download | cgit-0d169ada2ba81210ab1191a5f2212662e90db77e.tar.gz cgit-0d169ada2ba81210ab1191a5f2212662e90db77e.tar.bz2 cgit-0d169ada2ba81210ab1191a5f2212662e90db77e.zip |
Import cgit prototype from git tree
This enables basic cgit functionality, using libgit.a and xdiff/lib.a from
git + a custom "git.h" + openssl for sha1 routines.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.h')
-rw-r--r-- | cgit.h | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -0,0 +1,21 @@ | |||
1 | #ifndef CGIT_H | ||
2 | #define CGIT_H | ||
3 | |||
4 | #include "git.h" | ||
5 | #include <openssl/sha.h> | ||
6 | |||
7 | extern char *fmt(const char *format,...); | ||
8 | |||
9 | extern void html(const char *txt); | ||
10 | extern void htmlf(const char *format,...); | ||
11 | extern void html_txt(char *txt); | ||
12 | extern void html_attr(char *txt); | ||
13 | |||
14 | extern void html_link_open(char *url, char *title, char *class); | ||
15 | extern void html_link_close(void); | ||
16 | |||
17 | typedef void (*configfn)(const char *name, const char *value); | ||
18 | |||
19 | extern int cgit_read_config(const char *filename, configfn fn); | ||
20 | |||
21 | #endif /* CGIT_H */ | ||