]> git.cameronkatri.com Git - cgit.git/blob - ui-shared.h
ui-patch: Apply path limit to generated patch
[cgit.git] / ui-shared.h
1 #ifndef UI_SHARED_H
2 #define UI_SHARED_H
3
4 extern char *cgit_httpscheme();
5 extern char *cgit_hosturl();
6 extern char *cgit_rooturl();
7 extern char *cgit_repourl(const char *reponame);
8 extern char *cgit_fileurl(const char *reponame, const char *pagename,
9 const char *filename, const char *query);
10 extern char *cgit_pageurl(const char *reponame, const char *pagename,
11 const char *query);
12
13 extern void cgit_index_link(const char *name, const char *title,
14 const char *class, const char *pattern, int ofs);
15 extern void cgit_summary_link(const char *name, const char *title,
16 const char *class, const char *head);
17 extern void cgit_tag_link(const char *name, const char *title,
18 const char *class, const char *head,
19 const char *rev);
20 extern void cgit_tree_link(const char *name, const char *title,
21 const char *class, const char *head,
22 const char *rev, const char *path);
23 extern void cgit_plain_link(const char *name, const char *title,
24 const char *class, const char *head,
25 const char *rev, const char *path);
26 extern void cgit_log_link(const char *name, const char *title,
27 const char *class, const char *head, const char *rev,
28 const char *path, int ofs, const char *grep,
29 const char *pattern, int showmsg);
30 extern void cgit_commit_link(char *name, const char *title,
31 const char *class, const char *head,
32 const char *rev, int toggle_ssdiff);
33 extern void cgit_patch_link(const char *name, const char *title,
34 const char *class, const char *head,
35 const char *rev, const char *path);
36 extern void cgit_refs_link(const char *name, const char *title,
37 const char *class, const char *head,
38 const char *rev, const char *path);
39 extern void cgit_snapshot_link(const char *name, const char *title,
40 const char *class, const char *head,
41 const char *rev, const char *archivename);
42 extern void cgit_diff_link(const char *name, const char *title,
43 const char *class, const char *head,
44 const char *new_rev, const char *old_rev,
45 const char *path, int toggle_ssdiff);
46 extern void cgit_stats_link(const char *name, const char *title,
47 const char *class, const char *head,
48 const char *path);
49 extern void cgit_self_link(char *name, const char *title,
50 const char *class, struct cgit_context *ctx);
51 extern void cgit_object_link(struct object *obj);
52
53 extern void cgit_print_error(const char *msg);
54 extern void cgit_print_date(time_t secs, const char *format, int local_time);
55 extern void cgit_print_age(time_t t, time_t max_relative, const char *format);
56 extern void cgit_print_http_headers(struct cgit_context *ctx);
57 extern void cgit_print_docstart(struct cgit_context *ctx);
58 extern void cgit_print_docend();
59 extern void cgit_print_pageheader(struct cgit_context *ctx);
60 extern void cgit_print_filemode(unsigned short mode);
61 extern void cgit_print_snapshot_links(const char *repo, const char *head,
62 const char *hex, int snapshots);
63 extern void cgit_add_hidden_formfields(int incl_head, int incl_search,
64 const char *page);
65 #endif /* UI_SHARED_H */