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
@@ -22,16 +22,23 @@ struct commitinfo {
22 unsigned long author_date; 22 unsigned long author_date;
23 char *committer; 23 char *committer;
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;
36extern char *cgit_logo_link; 43extern char *cgit_logo_link;
37extern char *cgit_virtual_root; 44extern char *cgit_virtual_root;
@@ -82,16 +89,17 @@ extern void html_attr(char *txt);
82extern void html_hidden(char *name, char *value); 89extern void html_hidden(char *name, char *value);
83extern void html_link_open(char *url, char *title, char *class); 90extern 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);
96extern int cache_expired(struct cacheitem *item); 104extern int cache_expired(struct cacheitem *item);
97 105