]> git.cameronkatri.com Git - cgit.git/blob - cgit.h
Import cgit prototype from git tree
[cgit.git] / cgit.h
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 */