|
diff --git a/cgit.h b/cgit.h index 0100763..9c7f0b4 100644 --- a/ cgit.h+++ b/ cgit.h |
|
@@ -16,69 +16,70 @@ struct cacheitem { |
16 | }; |
16 | }; |
17 | |
17 | |
18 | extern const char cgit_version[]; |
18 | extern const char cgit_version[]; |
19 | |
19 | |
20 | extern char *cgit_root; |
20 | extern char *cgit_root; |
21 | extern char *cgit_root_title; |
21 | extern char *cgit_root_title; |
22 | extern char *cgit_css; |
22 | extern char *cgit_css; |
23 | extern char *cgit_logo; |
23 | extern char *cgit_logo; |
24 | extern char *cgit_logo_link; |
24 | extern char *cgit_logo_link; |
25 | extern char *cgit_virtual_root; |
25 | extern char *cgit_virtual_root; |
26 | extern char *cgit_cache_root; |
26 | extern char *cgit_cache_root; |
27 | |
27 | |
28 | extern int cgit_max_lock_attempts; |
28 | extern int cgit_max_lock_attempts; |
29 | extern int cgit_cache_root_ttl; |
29 | extern int cgit_cache_root_ttl; |
30 | extern int cgit_cache_repo_ttl; |
30 | extern int cgit_cache_repo_ttl; |
31 | extern int cgit_cache_dynamic_ttl; |
31 | extern int cgit_cache_dynamic_ttl; |
32 | extern int cgit_cache_static_ttl; |
32 | extern int cgit_cache_static_ttl; |
33 | extern int cgit_cache_max_create_time; |
33 | extern int cgit_cache_max_create_time; |
34 | |
34 | |
35 | extern char *cgit_repo_name; |
35 | extern char *cgit_repo_name; |
36 | extern char *cgit_repo_desc; |
36 | extern char *cgit_repo_desc; |
37 | extern char *cgit_repo_owner; |
37 | extern char *cgit_repo_owner; |
38 | |
38 | |
39 | extern int cgit_query_has_symref; |
39 | extern int cgit_query_has_symref; |
40 | extern int cgit_query_has_sha1; |
40 | extern int cgit_query_has_sha1; |
41 | |
41 | |
42 | extern char *cgit_querystring; |
42 | extern char *cgit_querystring; |
43 | extern char *cgit_query_repo; |
43 | extern char *cgit_query_repo; |
44 | extern char *cgit_query_page; |
44 | extern char *cgit_query_page; |
45 | extern char *cgit_query_head; |
45 | extern char *cgit_query_head; |
46 | extern char *cgit_query_sha1; |
46 | extern char *cgit_query_sha1; |
47 | |
47 | |
48 | extern int htmlfd; |
48 | extern int htmlfd; |
49 | |
49 | |
50 | extern char *fmt(const char *format,...); |
50 | extern char *fmt(const char *format,...); |
51 | |
51 | |
52 | extern void html(const char *txt); |
52 | extern void html(const char *txt); |
53 | extern void htmlf(const char *format,...); |
53 | extern void htmlf(const char *format,...); |
54 | extern void html_txt(char *txt); |
54 | extern void html_txt(char *txt); |
55 | extern void html_attr(char *txt); |
55 | extern void html_attr(char *txt); |
56 | extern void html_link_open(char *url, char *title, char *class); |
56 | extern void html_link_open(char *url, char *title, char *class); |
57 | extern void html_link_close(void); |
57 | extern void html_link_close(void); |
58 | |
58 | |
59 | extern int cgit_read_config(const char *filename, configfn fn); |
59 | extern int cgit_read_config(const char *filename, configfn fn); |
60 | extern int cgit_parse_query(char *txt, configfn fn); |
60 | extern int cgit_parse_query(char *txt, configfn fn); |
61 | |
61 | |
62 | extern void cache_prepare(struct cacheitem *item); |
62 | extern void cache_prepare(struct cacheitem *item); |
63 | extern int cache_lock(struct cacheitem *item); |
63 | extern int cache_lock(struct cacheitem *item); |
64 | extern int cache_unlock(struct cacheitem *item); |
64 | extern int cache_unlock(struct cacheitem *item); |
65 | extern int cache_exist(struct cacheitem *item); |
65 | extern int cache_exist(struct cacheitem *item); |
66 | extern int cache_expired(struct cacheitem *item); |
66 | extern int cache_expired(struct cacheitem *item); |
67 | |
67 | |
68 | extern char *cgit_repourl(const char *reponame); |
68 | extern char *cgit_repourl(const char *reponame); |
69 | extern char *cgit_pageurl(const char *reponame, const char *pagename, |
69 | extern char *cgit_pageurl(const char *reponame, const char *pagename, |
70 | const char *query); |
70 | const char *query); |
71 | |
71 | |
72 | extern void cgit_print_error(char *msg); |
72 | extern void cgit_print_error(char *msg); |
73 | extern void cgit_print_docstart(char *title, struct cacheitem *item); |
73 | extern void cgit_print_docstart(char *title, struct cacheitem *item); |
74 | extern void cgit_print_docend(); |
74 | extern void cgit_print_docend(); |
75 | extern void cgit_print_pageheader(char *title); |
75 | extern void cgit_print_pageheader(char *title); |
76 | |
76 | |
77 | extern void cgit_print_repolist(struct cacheitem *item); |
77 | extern void cgit_print_repolist(struct cacheitem *item); |
78 | extern void cgit_print_summary(); |
78 | extern void cgit_print_summary(); |
79 | extern void cgit_print_log(const char *tip, int ofs, int cnt); |
79 | extern void cgit_print_log(const char *tip, int ofs, int cnt); |
| |
80 | extern void cgit_print_view(char *hex); |
80 | |
81 | |
81 | extern void cgit_repo_config_cb(const char *name, const char *value); |
82 | extern void cgit_repo_config_cb(const char *name, const char *value); |
82 | |
83 | |
83 | |
84 | |
84 | #endif /* CGIT_H */ |
85 | #endif /* CGIT_H */ |
|