Unidiff1 files changed, 9 insertions, 0 deletions
|
diff --git a/cgit.h b/cgit.h index 82e8681..268db53 100644 --- a/ cgit.h+++ b/ cgit.h |
|
@@ -14,8 +14,16 @@ struct cacheitem { |
14 | int ttl; |
14 | int ttl; |
15 | int fd; |
15 | int fd; |
16 | }; |
16 | }; |
17 | |
17 | |
| |
18 | struct commitinfo { |
| |
19 | struct commit *commit; |
| |
20 | char *author; |
| |
21 | char *committer; |
| |
22 | char *subject; |
| |
23 | char *msg; |
| |
24 | }; |
| |
25 | |
18 | extern const char cgit_version[]; |
26 | extern const char cgit_version[]; |
19 | |
27 | |
20 | extern char *cgit_root; |
28 | extern char *cgit_root; |
21 | extern char *cgit_root_title; |
29 | extern char *cgit_root_title; |
@@ -62,8 +70,9 @@ extern void html_link_open(char *url, char *title, char *class); |
62 | extern void html_link_close(void); |
70 | extern void html_link_close(void); |
63 | |
71 | |
64 | extern int cgit_read_config(const char *filename, configfn fn); |
72 | extern int cgit_read_config(const char *filename, configfn fn); |
65 | extern int cgit_parse_query(char *txt, configfn fn); |
73 | extern int cgit_parse_query(char *txt, configfn fn); |
| |
74 | extern struct commitinfo *cgit_parse_commit(struct commit *commit); |
66 | |
75 | |
67 | extern void cache_prepare(struct cacheitem *item); |
76 | extern void cache_prepare(struct cacheitem *item); |
68 | extern int cache_lock(struct cacheitem *item); |
77 | extern int cache_lock(struct cacheitem *item); |
69 | extern int cache_unlock(struct cacheitem *item); |
78 | extern int cache_unlock(struct cacheitem *item); |
|