summaryrefslogtreecommitdiff
path: root/cgit.h
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2006-12-09 15:18:17 +0100
committerLars Hjemli <hjemli@gmail.com>2006-12-09 15:18:17 +0100
commit0d169ada2ba81210ab1191a5f2212662e90db77e (patch)
tree402b54583db269323ebb28e5fbf2075c4c1b3d85 /cgit.h
downloadcgit-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 '')
-rw-r--r--cgit.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
new file mode 100644
index 0000000..19f7ba7
--- /dev/null
+++ b/cgit.h
@@ -0,0 +1,21 @@
+#ifndef CGIT_H
+#define CGIT_H
+
+#include "git.h"
+#include <openssl/sha.h>
+
+extern char *fmt(const char *format,...);
+
+extern void html(const char *txt);
+extern void htmlf(const char *format,...);
+extern void html_txt(char *txt);
+extern void html_attr(char *txt);
+
+extern void html_link_open(char *url, char *title, char *class);
+extern void html_link_close(void);
+
+typedef void (*configfn)(const char *name, const char *value);
+
+extern int cgit_read_config(const char *filename, configfn fn);
+
+#endif /* CGIT_H */