diff options
author | John Keeping | 2014-08-01 22:14:17 +0100 |
---|---|---|
committer | Jason A. Donenfeld | 2014-12-23 19:04:04 -0700 |
commit | bbfa006e6eb93d56842c1d90bbba1c5484afb855 (patch) | |
tree | b1dbf7beb06c1deae73d10998cc5cad87d736f22 /ui-shared.h | |
parent | 485b09925cd54f3f55257619fa5796d274e96050 (diff) | |
download | cgit-bbfa006e6eb93d56842c1d90bbba1c5484afb855.tar.gz cgit-bbfa006e6eb93d56842c1d90bbba1c5484afb855.tar.bz2 cgit-bbfa006e6eb93d56842c1d90bbba1c5484afb855.zip |
Extract clone URL printing to ui-shared.c
This will allow us to reuse the same logic to add clone URL <link/>
elements to the header of all repo-specific pages in order to support
the rel-vcs microformat.
Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'ui-shared.h')
-rw-r--r-- | ui-shared.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui-shared.h b/ui-shared.h index fc9be3b..f8cf220 100644 --- a/ui-shared.h +++ b/ui-shared.h | |||
@@ -11,6 +11,8 @@ extern char *cgit_fileurl(const char *reponame, const char *pagename, | |||
11 | extern char *cgit_pageurl(const char *reponame, const char *pagename, | 11 | extern char *cgit_pageurl(const char *reponame, const char *pagename, |
12 | const char *query); | 12 | const char *query); |
13 | 13 | ||
14 | extern void cgit_add_clone_urls(void (*fn)(const char *)); | ||
15 | |||
14 | extern void cgit_index_link(const char *name, const char *title, | 16 | extern void cgit_index_link(const char *name, const char *title, |
15 | const char *class, const char *pattern, const char *sort, int ofs); | 17 | const char *class, const char *pattern, const char *sort, int ofs); |
16 | extern void cgit_summary_link(const char *name, const char *title, | 18 | extern void cgit_summary_link(const char *name, const char *title, |