]>
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 const char *cgit_loginurl(void);
9 extern char *cgit_repourl(const char *reponame
);
10 extern char *cgit_fileurl(const char *reponame
, const char *pagename
,
11 const char *filename
, const char *query
);
12 extern char *cgit_pageurl(const char *reponame
, const char *pagename
,
15 extern void cgit_add_clone_urls(void (*fn
)(const char *));
17 extern void cgit_index_link(const char *name
, const char *title
,
18 const char *class, const char *pattern
, const char *sort
, int ofs
, int always_root
);
19 extern void cgit_summary_link(const char *name
, const char *title
,
20 const char *class, const char *head
);
21 extern void cgit_tag_link(const char *name
, const char *title
,
22 const char *class, const char *tag
);
23 extern void cgit_tree_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_plain_link(const char *name
, const char *title
,
27 const char *class, const char *head
,
28 const char *rev
, const char *path
);
29 extern void cgit_blame_link(const char *name
, const char *title
,
30 const char *class, const char *head
,
31 const char *rev
, const char *path
);
32 extern void cgit_log_link(const char *name
, const char *title
,
33 const char *class, const char *head
, const char *rev
,
34 const char *path
, int ofs
, const char *grep
,
35 const char *pattern
, int showmsg
, int follow
);
36 extern void cgit_commit_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_patch_link(const char *name
, const char *title
,
40 const char *class, const char *head
,
41 const char *rev
, const char *path
);
42 extern void cgit_refs_link(const char *name
, const char *title
,
43 const char *class, const char *head
,
44 const char *rev
, const char *path
);
45 extern void cgit_snapshot_link(const char *name
, const char *title
,
46 const char *class, const char *head
,
47 const char *rev
, const char *archivename
);
48 extern void cgit_diff_link(const char *name
, const char *title
,
49 const char *class, const char *head
,
50 const char *new_rev
, const char *old_rev
,
52 extern void cgit_stats_link(const char *name
, const char *title
,
53 const char *class, const char *head
,
55 extern void cgit_object_link(struct object
*obj
);
57 extern void cgit_submodule_link(const char *class, char *path
,
60 extern void cgit_print_layout_start(void);
61 extern void cgit_print_layout_end(void);
63 __attribute__((format (printf
,1,2)))
64 extern void cgit_print_error(const char *fmt
, ...);
65 __attribute__((format (printf
,1,0)))
66 extern void cgit_vprint_error(const char *fmt
, va_list ap
);
67 extern const struct date_mode
*cgit_date_mode(enum date_mode_type type
);
68 extern void cgit_print_age(time_t t
, int tz
, time_t max_relative
);
69 extern void cgit_print_http_headers(void);
70 extern void cgit_redirect(const char *url
, bool permanent
);
71 extern void cgit_print_docstart(void);
72 extern void cgit_print_docend(void);
73 __attribute__((format (printf
,3,4)))
74 extern void cgit_print_error_page(int code
, const char *msg
, const char *fmt
, ...);
75 extern void cgit_print_pageheader(void);
76 extern void cgit_print_filemode(unsigned short mode
);
77 extern void cgit_compose_snapshot_prefix(struct strbuf
*filename
,
78 const char *base
, const char *ref
);
79 extern void cgit_print_snapshot_links(const struct cgit_repo
*repo
,
80 const char *head
, const char *hex
);
81 extern const char *cgit_snapshot_prefix(const struct cgit_repo
*repo
);
82 extern void cgit_add_hidden_formfields(int incl_head
, int incl_search
,
85 extern void cgit_set_title_from_path(const char *path
);
86 #endif /* UI_SHARED_H */