diff options
author | Lars Hjemli | 2007-06-17 01:23:08 +0200 |
---|---|---|
committer | Lars Hjemli | 2007-06-17 01:39:05 +0200 |
commit | 44947bfcdc0d6e8c7d673bea0538cbf2a182f289 (patch) | |
tree | 3f65d6842738a8314ed72d5575a0b523061556b7 /cgit.h | |
parent | f91b9696a36008c245a3195800ba0c5fa3e890f9 (diff) | |
download | cgit-44947bfcdc0d6e8c7d673bea0538cbf2a182f289.tar.gz cgit-44947bfcdc0d6e8c7d673bea0538cbf2a182f289.tar.bz2 cgit-44947bfcdc0d6e8c7d673bea0538cbf2a182f289.zip |
Add and use cgit_tree_link()
This creates a new function used to generate links to 'tree' page and uses
the function everywhere a link to the 'tree' page is generated.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.h')
-rw-r--r-- | cgit.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -201,6 +201,9 @@ extern char *cgit_repourl(const char *reponame); | |||
201 | extern char *cgit_pageurl(const char *reponame, const char *pagename, | 201 | extern char *cgit_pageurl(const char *reponame, const char *pagename, |
202 | const char *query); | 202 | const char *query); |
203 | 203 | ||
204 | extern void cgit_tree_link(char *name, char *title, char *class, char *head, | ||
205 | char *rev, char *path); | ||
206 | |||
204 | extern void cgit_print_error(char *msg); | 207 | extern void cgit_print_error(char *msg); |
205 | extern void cgit_print_date(time_t secs, char *format); | 208 | extern void cgit_print_date(time_t secs, char *format); |
206 | extern void cgit_print_age(time_t t, time_t max_relative, char *format); | 209 | extern void cgit_print_age(time_t t, time_t max_relative, char *format); |