summaryrefslogtreecommitdiffabout
path: root/cgit.h
Unidiff
Diffstat (limited to 'cgit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index 5e19b11..9b517a7 100644
--- a/cgit.h
+++ b/cgit.h
@@ -24,12 +24,19 @@ struct commitinfo {
24 char *committer_email; 24 char *committer_email;
25 unsigned long committer_date; 25 unsigned long committer_date;
26 char *subject; 26 char *subject;
27 char *msg; 27 char *msg;
28}; 28};
29 29
30struct taginfo {
31 char *tagger;
32 char *tagger_email;
33 int tagger_date;
34 char *msg;
35};
36
30extern const char cgit_version[]; 37extern const char cgit_version[];
31 38
32extern char *cgit_root; 39extern char *cgit_root;
33extern char *cgit_root_title; 40extern char *cgit_root_title;
34extern char *cgit_css; 41extern char *cgit_css;
35extern char *cgit_logo; 42extern char *cgit_logo;
@@ -84,12 +91,13 @@ extern void html_link_open(char *url, char *title, char *class);
84extern void html_link_close(void); 91extern void html_link_close(void);
85extern void html_filemode(unsigned short mode); 92extern void html_filemode(unsigned short mode);
86 93
87extern int cgit_read_config(const char *filename, configfn fn); 94extern int cgit_read_config(const char *filename, configfn fn);
88extern int cgit_parse_query(char *txt, configfn fn); 95extern int cgit_parse_query(char *txt, configfn fn);
89extern struct commitinfo *cgit_parse_commit(struct commit *commit); 96extern struct commitinfo *cgit_parse_commit(struct commit *commit);
97extern struct taginfo *cgit_parse_tag(struct tag *tag);
90 98
91extern char *cache_safe_filename(const char *unsafe); 99extern char *cache_safe_filename(const char *unsafe);
92extern int cache_lock(struct cacheitem *item); 100extern int cache_lock(struct cacheitem *item);
93extern int cache_unlock(struct cacheitem *item); 101extern int cache_unlock(struct cacheitem *item);
94extern int cache_cancel_lock(struct cacheitem *item); 102extern int cache_cancel_lock(struct cacheitem *item);
95extern int cache_exist(struct cacheitem *item); 103extern int cache_exist(struct cacheitem *item);