|
diff --git a/cgit.h b/cgit.h index 2615231..292e488 100644 --- a/ cgit.h+++ b/ cgit.h |
|
@@ -127,40 +127,41 @@ extern void html_link_open(char *url, char *title, char *class); |
127 | extern void html_link_close(void); |
127 | extern void html_link_close(void); |
128 | extern void html_filemode(unsigned short mode); |
128 | extern void html_filemode(unsigned short mode); |
129 | |
129 | |
130 | extern int cgit_read_config(const char *filename, configfn fn); |
130 | extern int cgit_read_config(const char *filename, configfn fn); |
131 | extern int cgit_parse_query(char *txt, configfn fn); |
131 | extern int cgit_parse_query(char *txt, configfn fn); |
132 | extern struct commitinfo *cgit_parse_commit(struct commit *commit); |
132 | extern struct commitinfo *cgit_parse_commit(struct commit *commit); |
133 | extern struct taginfo *cgit_parse_tag(struct tag *tag); |
133 | extern struct taginfo *cgit_parse_tag(struct tag *tag); |
134 | |
134 | |
135 | extern char *cache_safe_filename(const char *unsafe); |
135 | extern char *cache_safe_filename(const char *unsafe); |
136 | extern int cache_lock(struct cacheitem *item); |
136 | extern int cache_lock(struct cacheitem *item); |
137 | extern int cache_unlock(struct cacheitem *item); |
137 | extern int cache_unlock(struct cacheitem *item); |
138 | extern int cache_cancel_lock(struct cacheitem *item); |
138 | extern int cache_cancel_lock(struct cacheitem *item); |
139 | extern int cache_exist(struct cacheitem *item); |
139 | extern int cache_exist(struct cacheitem *item); |
140 | extern int cache_expired(struct cacheitem *item); |
140 | extern int cache_expired(struct cacheitem *item); |
141 | |
141 | |
142 | extern char *cgit_repourl(const char *reponame); |
142 | extern char *cgit_repourl(const char *reponame); |
143 | extern char *cgit_pageurl(const char *reponame, const char *pagename, |
143 | extern char *cgit_pageurl(const char *reponame, const char *pagename, |
144 | const char *query); |
144 | const char *query); |
145 | |
145 | |
146 | extern void cgit_print_error(char *msg); |
146 | extern void cgit_print_error(char *msg); |
147 | extern void cgit_print_date(unsigned long secs); |
147 | extern void cgit_print_date(unsigned long secs); |
148 | extern void cgit_print_docstart(char *title, struct cacheitem *item); |
148 | extern void cgit_print_docstart(char *title, struct cacheitem *item); |
149 | extern void cgit_print_docend(); |
149 | extern void cgit_print_docend(); |
150 | extern void cgit_print_pageheader(char *title, int show_search); |
150 | extern void cgit_print_pageheader(char *title, int show_search); |
151 | extern void cgit_print_snapshot_start(const char *mimetype, |
151 | extern void cgit_print_snapshot_start(const char *mimetype, |
152 | const char *filename, |
152 | const char *filename, |
153 | struct cacheitem *item); |
153 | struct cacheitem *item); |
154 | |
154 | |
155 | extern void cgit_print_repolist(struct cacheitem *item); |
155 | extern void cgit_print_repolist(struct cacheitem *item); |
156 | extern void cgit_print_summary(); |
156 | extern void cgit_print_summary(); |
157 | extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep); |
157 | extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep); |
158 | extern void cgit_print_view(const char *hex, char *path); |
158 | extern void cgit_print_view(const char *hex, char *path); |
| |
159 | extern void cgit_print_blob(struct cacheitem *item, const char *hex, char *path); |
159 | extern void cgit_print_tree(const char *hex, char *path); |
160 | extern void cgit_print_tree(const char *hex, char *path); |
160 | extern void cgit_print_commit(const char *hex); |
161 | extern void cgit_print_commit(const char *hex); |
161 | extern void cgit_print_diff(const char *old_hex, const char *new_hex); |
162 | extern void cgit_print_diff(const char *old_hex, const char *new_hex); |
162 | extern void cgit_print_snapshot(struct cacheitem *item, const char *hex, |
163 | extern void cgit_print_snapshot(struct cacheitem *item, const char *hex, |
163 | const char *format, const char *prefix, |
164 | const char *format, const char *prefix, |
164 | const char *filename); |
165 | const char *filename); |
165 | |
166 | |
166 | #endif /* CGIT_H */ |
167 | #endif /* CGIT_H */ |
|