|
diff --git a/cgit.h b/cgit.h index ea61be7..eddcaa3 100644 --- a/ cgit.h+++ b/ cgit.h |
|
@@ -22,17 +22,17 @@ |
22 | * The valid cgit repo-commands |
22 | * The valid cgit repo-commands |
23 | */ |
23 | */ |
24 | #define CMD_LOG 1 |
24 | #define CMD_LOG 1 |
25 | #define CMD_COMMIT 2 |
25 | #define CMD_COMMIT 2 |
26 | #define CMD_DIFF 3 |
26 | #define CMD_DIFF 3 |
27 | #define CMD_TREE 4 |
27 | #define CMD_TREE 4 |
28 | #define CMD_BLOB 5 |
28 | #define CMD_BLOB 5 |
29 | #define CMD_SNAPSHOT 6 |
29 | #define CMD_SNAPSHOT 6 |
30 | |
30 | #define CMD_TAG 7 |
31 | |
31 | |
32 | /* |
32 | /* |
33 | * Dateformats used on misc. pages |
33 | * Dateformats used on misc. pages |
34 | */ |
34 | */ |
35 | #define FMT_LONGDATE "%Y-%m-%d %H:%M:%S" |
35 | #define FMT_LONGDATE "%Y-%m-%d %H:%M:%S" |
36 | #define FMT_SHORTDATE "%Y-%m-%d" |
36 | #define FMT_SHORTDATE "%Y-%m-%d" |
37 | |
37 | |
38 | |
38 | |
@@ -212,32 +212,35 @@ extern void cgit_tree_link(char *name, char *title, char *class, char *head, |
212 | char *rev, char *path); |
212 | char *rev, char *path); |
213 | extern void cgit_log_link(char *name, char *title, char *class, char *head, |
213 | extern void cgit_log_link(char *name, char *title, char *class, char *head, |
214 | char *rev, char *path, int ofs); |
214 | char *rev, char *path, int ofs); |
215 | extern void cgit_commit_link(char *name, char *title, char *class, char *head, |
215 | extern void cgit_commit_link(char *name, char *title, char *class, char *head, |
216 | char *rev); |
216 | char *rev); |
217 | extern void cgit_diff_link(char *name, char *title, char *class, char *head, |
217 | extern void cgit_diff_link(char *name, char *title, char *class, char *head, |
218 | char *new_rev, char *old_rev, char *path); |
218 | char *new_rev, char *old_rev, char *path); |
219 | |
219 | |
| |
220 | extern void cgit_object_link(struct object *obj); |
| |
221 | |
220 | extern void cgit_print_error(char *msg); |
222 | extern void cgit_print_error(char *msg); |
221 | extern void cgit_print_date(time_t secs, char *format); |
223 | extern void cgit_print_date(time_t secs, char *format); |
222 | extern void cgit_print_age(time_t t, time_t max_relative, char *format); |
224 | extern void cgit_print_age(time_t t, time_t max_relative, char *format); |
223 | extern void cgit_print_docstart(char *title, struct cacheitem *item); |
225 | extern void cgit_print_docstart(char *title, struct cacheitem *item); |
224 | extern void cgit_print_docend(); |
226 | extern void cgit_print_docend(); |
225 | extern void cgit_print_pageheader(char *title, int show_search); |
227 | extern void cgit_print_pageheader(char *title, int show_search); |
226 | extern void cgit_print_snapshot_start(const char *mimetype, |
228 | extern void cgit_print_snapshot_start(const char *mimetype, |
227 | const char *filename, |
229 | const char *filename, |
228 | struct cacheitem *item); |
230 | struct cacheitem *item); |
229 | |
231 | |
230 | extern void cgit_print_repolist(struct cacheitem *item); |
232 | extern void cgit_print_repolist(struct cacheitem *item); |
231 | extern void cgit_print_summary(); |
233 | extern void cgit_print_summary(); |
232 | extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path, int pager); |
234 | extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path, int pager); |
233 | extern void cgit_print_blob(struct cacheitem *item, const char *hex, char *path); |
235 | extern void cgit_print_blob(struct cacheitem *item, const char *hex, char *path); |
234 | extern void cgit_print_tree(const char *rev, char *path); |
236 | extern void cgit_print_tree(const char *rev, char *path); |
235 | extern void cgit_print_commit(char *hex); |
237 | extern void cgit_print_commit(char *hex); |
| |
238 | extern void cgit_print_tag(char *revname); |
236 | extern void cgit_print_diff(const char *new_hex, const char *old_hex); |
239 | extern void cgit_print_diff(const char *new_hex, const char *old_hex); |
237 | extern void cgit_print_snapshot(struct cacheitem *item, const char *hex, |
240 | extern void cgit_print_snapshot(struct cacheitem *item, const char *hex, |
238 | const char *prefix, const char *filename, |
241 | const char *prefix, const char *filename, |
239 | int snapshot); |
242 | int snapshot); |
240 | extern void cgit_print_snapshot_links(const char *repo, const char *hex,int snapshots); |
243 | extern void cgit_print_snapshot_links(const char *repo, const char *hex,int snapshots); |
241 | extern int cgit_parse_snapshots_mask(const char *str); |
244 | extern int cgit_parse_snapshots_mask(const char *str); |
242 | |
245 | |
243 | #endif /* CGIT_H */ |
246 | #endif /* CGIT_H */ |
|