summaryrefslogtreecommitdiffabout
path: root/cgit.h
Unidiff
Diffstat (limited to 'cgit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.h1
1 files changed, 1 insertions, 0 deletions
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
18extern const char cgit_version[]; 18extern const char cgit_version[];
19 19
20extern char *cgit_root; 20extern char *cgit_root;
21extern char *cgit_root_title; 21extern char *cgit_root_title;
22extern char *cgit_css; 22extern char *cgit_css;
23extern char *cgit_logo; 23extern char *cgit_logo;
24extern char *cgit_logo_link; 24extern char *cgit_logo_link;
25extern char *cgit_virtual_root; 25extern char *cgit_virtual_root;
26extern char *cgit_cache_root; 26extern char *cgit_cache_root;
27 27
28extern int cgit_max_lock_attempts; 28extern int cgit_max_lock_attempts;
29extern int cgit_cache_root_ttl; 29extern int cgit_cache_root_ttl;
30extern int cgit_cache_repo_ttl; 30extern int cgit_cache_repo_ttl;
31extern int cgit_cache_dynamic_ttl; 31extern int cgit_cache_dynamic_ttl;
32extern int cgit_cache_static_ttl; 32extern int cgit_cache_static_ttl;
33extern int cgit_cache_max_create_time; 33extern int cgit_cache_max_create_time;
34 34
35extern char *cgit_repo_name; 35extern char *cgit_repo_name;
36extern char *cgit_repo_desc; 36extern char *cgit_repo_desc;
37extern char *cgit_repo_owner; 37extern char *cgit_repo_owner;
38 38
39extern int cgit_query_has_symref; 39extern int cgit_query_has_symref;
40extern int cgit_query_has_sha1; 40extern int cgit_query_has_sha1;
41 41
42extern char *cgit_querystring; 42extern char *cgit_querystring;
43extern char *cgit_query_repo; 43extern char *cgit_query_repo;
44extern char *cgit_query_page; 44extern char *cgit_query_page;
45extern char *cgit_query_head; 45extern char *cgit_query_head;
46extern char *cgit_query_sha1; 46extern char *cgit_query_sha1;
47 47
48extern int htmlfd; 48extern int htmlfd;
49 49
50extern char *fmt(const char *format,...); 50extern char *fmt(const char *format,...);
51 51
52extern void html(const char *txt); 52extern void html(const char *txt);
53extern void htmlf(const char *format,...); 53extern void htmlf(const char *format,...);
54extern void html_txt(char *txt); 54extern void html_txt(char *txt);
55extern void html_attr(char *txt); 55extern void html_attr(char *txt);
56extern void html_link_open(char *url, char *title, char *class); 56extern void html_link_open(char *url, char *title, char *class);
57extern void html_link_close(void); 57extern void html_link_close(void);
58 58
59extern int cgit_read_config(const char *filename, configfn fn); 59extern int cgit_read_config(const char *filename, configfn fn);
60extern int cgit_parse_query(char *txt, configfn fn); 60extern int cgit_parse_query(char *txt, configfn fn);
61 61
62extern void cache_prepare(struct cacheitem *item); 62extern void cache_prepare(struct cacheitem *item);
63extern int cache_lock(struct cacheitem *item); 63extern int cache_lock(struct cacheitem *item);
64extern int cache_unlock(struct cacheitem *item); 64extern int cache_unlock(struct cacheitem *item);
65extern int cache_exist(struct cacheitem *item); 65extern int cache_exist(struct cacheitem *item);
66extern int cache_expired(struct cacheitem *item); 66extern int cache_expired(struct cacheitem *item);
67 67
68extern char *cgit_repourl(const char *reponame); 68extern char *cgit_repourl(const char *reponame);
69extern char *cgit_pageurl(const char *reponame, const char *pagename, 69extern char *cgit_pageurl(const char *reponame, const char *pagename,
70 const char *query); 70 const char *query);
71 71
72extern void cgit_print_error(char *msg); 72extern void cgit_print_error(char *msg);
73extern void cgit_print_docstart(char *title, struct cacheitem *item); 73extern void cgit_print_docstart(char *title, struct cacheitem *item);
74extern void cgit_print_docend(); 74extern void cgit_print_docend();
75extern void cgit_print_pageheader(char *title); 75extern void cgit_print_pageheader(char *title);
76 76
77extern void cgit_print_repolist(struct cacheitem *item); 77extern void cgit_print_repolist(struct cacheitem *item);
78extern void cgit_print_summary(); 78extern void cgit_print_summary();
79extern void cgit_print_log(const char *tip, int ofs, int cnt); 79extern void cgit_print_log(const char *tip, int ofs, int cnt);
80extern void cgit_print_view(char *hex);
80 81
81extern void cgit_repo_config_cb(const char *name, const char *value); 82extern void cgit_repo_config_cb(const char *name, const char *value);
82 83
83 84
84#endif /* CGIT_H */ 85#endif /* CGIT_H */