diff options
Diffstat (limited to 'source/ui-shared.h')
| -rw-r--r-- | source/ui-shared.h | 24 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 17 insertions, 7 deletions
diff --git a/source/ui-shared.h b/source/ui-shared.h index e2d2db9..4809bc1 100644 --- a/source/ui-shared.h +++ b/source/ui-shared.h @@ -29,7 +29,9 @@ extern char *cgit_fileurl(const char *reponame, const char *pagename, const char const char *query); extern char *cgit_pageurl(const char *reponame, const char *pagename, const char *query); -// Call fn once for every URL this repository can be cloned from. +/* + * Call fn once for every URL this repository can be cloned from. + */ extern void cgit_add_clone_urls(void (*fn)(const char *)); /* @@ -39,7 +41,8 @@ extern void cgit_add_clone_urls(void (*fn)(const char *)); */ extern void cgit_index_link(const char *name, const char *title, const char *class, const char *pattern, const char *sort, int ofs, int always_root); -extern void cgit_summary_link(const char *name, const char *title, const char *class, const char *head); +extern void cgit_summary_link(const char *name, const char *title, const char *class, + const char *head); extern void cgit_tag_link(const char *name, const char *title, const char *class, const char *tag); extern void cgit_tree_link(const char *name, const char *title, const char *class, const char *head, const char *rev, const char *path); @@ -60,7 +63,9 @@ extern void cgit_diff_link(const char *name, const char *title, const char *clas const char *head, const char *new_rev, const char *old_rev, const char *path); extern void cgit_stats_link(const char *name, const char *title, const char *class, const char *head, const char *path); -// Names the object by type and id, abbreviated unless full is set. +/* + * Names the object by type and id, abbreviated unless full is set. + */ extern void cgit_object_link(struct object *obj, int full); extern void cgit_submodule_link(const char *class, char *path, const char *rev); @@ -88,10 +93,13 @@ extern void cgit_print_error_page(int code, const char *msg, const char *fmt, .. extern void cgit_vprint_error_page(int code, const char *msg, const char *fmt, va_list ap); extern void cgit_print_pageheader(void); extern void cgit_print_filemode(unsigned short mode); -extern void cgit_print_snapshot_links(const struct cgit_repo *repo, const char *ref, const char *separator); +extern void cgit_print_snapshot_links(const struct cgit_repo *repo, const char *ref, + const char *separator); -// The name a snapshot of this repository is downloaded under, which is the -// configured prefix or the last component of the repository URL. +/* + * The name a snapshot of this repository is downloaded under, which is the + * configured prefix or the last component of the repository URL. + */ extern const char *cgit_snapshot_prefix(const struct cgit_repo *repo); /* @@ -102,6 +110,8 @@ extern const char *cgit_snapshot_prefix(const struct cgit_repo *repo); */ extern void cgit_add_hidden_formfields(int incl_head, int incl_search, const char *page); -// Put path in front of the page title, its last component first. +/* + * Put path in front of the page title, its last component first. + */ extern void cgit_set_title_from_path(const char *path); #endif // CGIT_UI_SHARED_H |
