]>
git.cameronkatri.com Git - cgit.git/blob - ui-shared.h
4 extern const char *cgit_httpscheme();
5 extern const char *cgit_hosturl();
6 extern const char *cgit_rooturl();
7 extern const char *cgit_loginurl();
8 extern char *cgit_repourl(const char *reponame
);
9 extern char *cgit_fileurl(const char *reponame
, const char *pagename
,
10 const char *filename
, const char *query
);
11 extern char *cgit_pageurl(const char *reponame
, const char *pagename
,
14 extern void cgit_index_link(const char *name
, const char *title
,
15 const char *class, const char *pattern
, const char *sort
, int ofs
);
16 extern void cgit_summary_link(const char *name
, const char *title
,
17 const char *class, const char *head
);
18 extern void cgit_tag_link(const char *name
, const char *title
,
19 const char *class, const char *head
,
21 extern void cgit_tree_link(const char *name
, const char *title
,
22 const char *class, const char *head
,
23 const char *rev
, const char *path
);
24 extern void cgit_plain_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_log_link(const char *name
, const char *title
,
28 const char *class, const char *head
, const char *rev
,
29 const char *path
, int ofs
, const char *grep
,
30 const char *pattern
, int showmsg
);
31 extern void cgit_commit_link(char *name
, const char *title
,
32 const char *class, const char *head
,
33 const char *rev
, const char *path
);
34 extern void cgit_patch_link(const char *name
, const char *title
,
35 const char *class, const char *head
,
36 const char *rev
, const char *path
);
37 extern void cgit_refs_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_snapshot_link(const char *name
, const char *title
,
41 const char *class, const char *head
,
42 const char *rev
, const char *archivename
);
43 extern void cgit_diff_link(const char *name
, const char *title
,
44 const char *class, const char *head
,
45 const char *new_rev
, const char *old_rev
,
47 extern void cgit_stats_link(const char *name
, const char *title
,
48 const char *class, const char *head
,
50 extern void cgit_object_link(struct object
*obj
);
52 extern void cgit_submodule_link(const char *class, char *path
,
55 __attribute__((format (printf
,1,2)))
56 extern void cgit_print_error(const char *fmt
, ...);
57 __attribute__((format (printf
,1,0)))
58 extern void cgit_vprint_error(const char *fmt
, va_list ap
);
59 extern void cgit_print_date(time_t secs
, const char *format
, int local_time
);
60 extern void cgit_print_age(time_t t
, time_t max_relative
, const char *format
);
61 extern void cgit_print_http_headers(void);
62 extern void cgit_print_docstart(void);
63 extern void cgit_print_docend();
64 extern void cgit_print_pageheader(void);
65 extern void cgit_print_filemode(unsigned short mode
);
66 extern void cgit_print_snapshot_links(const char *repo
, const char *head
,
67 const char *hex
, int snapshots
);
68 extern void cgit_add_hidden_formfields(int incl_head
, int incl_search
,
70 #endif /* UI_SHARED_H */