]>
git.cameronkatri.com Git - cgit.git/blob - ui-shared.h
4 extern const char *cgit_httpscheme(void);
5 extern char *cgit_hosturl(void);
6 extern const char *cgit_rooturl(void);
7 extern char *cgit_currenturl(void);
8 extern char *cgit_currentfullurl(void);
9 extern const char *cgit_loginurl(void);
10 extern char *cgit_repourl(const char *reponame
);
11 extern char *cgit_fileurl(const char *reponame
, const char *pagename
,
12 const char *filename
, const char *query
);
13 extern char *cgit_pageurl(const char *reponame
, const char *pagename
,
16 extern void cgit_add_clone_urls(void (*fn
)(const char *));
18 extern void cgit_index_link(const char *name
, const char *title
,
19 const char *class, const char *pattern
, const char *sort
, int ofs
, int always_root
);
20 extern void cgit_summary_link(const char *name
, const char *title
,
21 const char *class, const char *head
);
22 extern void cgit_tag_link(const char *name
, const char *title
,
23 const char *class, const char *tag
);
24 extern void cgit_tree_link(const char *name
, const char *title
,
25 const char *class, const char *head
,
26 const char *rev
, const char *path
);
27 extern void cgit_plain_link(const char *name
, const char *title
,
28 const char *class, const char *head
,
29 const char *rev
, const char *path
);
30 extern void cgit_blame_link(const char *name
, const char *title
,
31 const char *class, const char *head
,
32 const char *rev
, const char *path
);
33 extern void cgit_log_link(const char *name
, const char *title
,
34 const char *class, const char *head
, const char *rev
,
35 const char *path
, int ofs
, const char *grep
,
36 const char *pattern
, int showmsg
, int follow
);
37 extern void cgit_commit_link(const char *name
, const char *title
,
38 const char *class, const char *head
,
39 const char *rev
, const char *path
);
40 extern void cgit_patch_link(const char *name
, const char *title
,
41 const char *class, const char *head
,
42 const char *rev
, const char *path
);
43 extern void cgit_refs_link(const char *name
, const char *title
,
44 const char *class, const char *head
,
45 const char *rev
, const char *path
);
46 extern void cgit_snapshot_link(const char *name
, const char *title
,
47 const char *class, const char *head
,
48 const char *rev
, const char *archivename
);
49 extern void cgit_diff_link(const char *name
, const char *title
,
50 const char *class, const char *head
,
51 const char *new_rev
, const char *old_rev
,
53 extern void cgit_stats_link(const char *name
, const char *title
,
54 const char *class, const char *head
,
56 extern void cgit_object_link(struct object
*obj
);
58 extern void cgit_submodule_link(const char *class, char *path
,
61 extern void cgit_print_layout_start(void);
62 extern void cgit_print_layout_end(void);
64 __attribute__((format (printf
,1,2)))
65 extern void cgit_print_error(const char *fmt
, ...);
66 __attribute__((format (printf
,1,0)))
67 extern void cgit_vprint_error(const char *fmt
, va_list ap
);
68 extern const struct date_mode
*cgit_date_mode(enum date_mode_type type
);
69 extern void cgit_print_age(time_t t
, int tz
, time_t max_relative
);
70 extern void cgit_print_http_headers(void);
71 extern void cgit_redirect(const char *url
, bool permanent
);
72 extern void cgit_print_docstart(void);
73 extern void cgit_print_docend(void);
74 __attribute__((format (printf
,3,4)))
75 extern void cgit_print_error_page(int code
, const char *msg
, const char *fmt
, ...);
76 extern void cgit_print_pageheader(void);
77 extern void cgit_print_filemode(unsigned short mode
);
78 extern void cgit_compose_snapshot_prefix(struct strbuf
*filename
,
79 const char *base
, const char *ref
);
80 extern void cgit_print_snapshot_links(const struct cgit_repo
*repo
,
81 const char *ref
, const char *separator
);
82 extern const char *cgit_snapshot_prefix(const struct cgit_repo
*repo
);
83 extern void cgit_add_hidden_formfields(int incl_head
, int incl_search
,
86 extern void cgit_set_title_from_path(const char *path
);
87 #endif /* UI_SHARED_H */