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 a905e47..a54f2b5 100644
--- a/cgit.h
+++ b/cgit.h
@@ -40,60 +40,61 @@ extern int cgit_cache_dynamic_ttl;
40extern int cgit_cache_static_ttl; 40extern int cgit_cache_static_ttl;
41extern int cgit_cache_max_create_time; 41extern int cgit_cache_max_create_time;
42 42
43extern char *cgit_repo_name; 43extern char *cgit_repo_name;
44extern char *cgit_repo_desc; 44extern char *cgit_repo_desc;
45extern char *cgit_repo_owner; 45extern char *cgit_repo_owner;
46 46
47extern int cgit_query_has_symref; 47extern int cgit_query_has_symref;
48extern int cgit_query_has_sha1; 48extern int cgit_query_has_sha1;
49 49
50extern char *cgit_querystring; 50extern char *cgit_querystring;
51extern char *cgit_query_repo; 51extern char *cgit_query_repo;
52extern char *cgit_query_page; 52extern char *cgit_query_page;
53extern char *cgit_query_head; 53extern char *cgit_query_head;
54extern char *cgit_query_sha1; 54extern char *cgit_query_sha1;
55extern int cgit_query_ofs; 55extern int cgit_query_ofs;
56 56
57extern int htmlfd; 57extern int htmlfd;
58 58
59extern void cgit_global_config_cb(const char *name, const char *value); 59extern void cgit_global_config_cb(const char *name, const char *value);
60extern void cgit_repo_config_cb(const char *name, const char *value); 60extern void cgit_repo_config_cb(const char *name, const char *value);
61extern void cgit_querystring_cb(const char *name, const char *value); 61extern void cgit_querystring_cb(const char *name, const char *value);
62 62
63extern char *fmt(const char *format,...); 63extern char *fmt(const char *format,...);
64 64
65extern void html(const char *txt); 65extern void html(const char *txt);
66extern void htmlf(const char *format,...); 66extern void htmlf(const char *format,...);
67extern void html_txt(char *txt); 67extern void html_txt(char *txt);
68extern void html_attr(char *txt); 68extern void html_attr(char *txt);
69extern void html_link_open(char *url, char *title, char *class); 69extern void html_link_open(char *url, char *title, char *class);
70extern void html_link_close(void); 70extern void html_link_close(void);
71 71
72extern int cgit_read_config(const char *filename, configfn fn); 72extern int cgit_read_config(const char *filename, configfn fn);
73extern int cgit_parse_query(char *txt, configfn fn); 73extern int cgit_parse_query(char *txt, configfn fn);
74extern struct commitinfo *cgit_parse_commit(struct commit *commit); 74extern struct commitinfo *cgit_parse_commit(struct commit *commit);
75 75
76extern void cache_prepare(struct cacheitem *item); 76extern void cache_prepare(struct cacheitem *item);
77extern int cache_lock(struct cacheitem *item); 77extern int cache_lock(struct cacheitem *item);
78extern int cache_unlock(struct cacheitem *item); 78extern int cache_unlock(struct cacheitem *item);
79extern int cache_cancel_lock(struct cacheitem *item); 79extern int cache_cancel_lock(struct cacheitem *item);
80extern int cache_exist(struct cacheitem *item); 80extern int cache_exist(struct cacheitem *item);
81extern int cache_expired(struct cacheitem *item); 81extern int cache_expired(struct cacheitem *item);
82 82
83extern char *cgit_repourl(const char *reponame); 83extern char *cgit_repourl(const char *reponame);
84extern char *cgit_pageurl(const char *reponame, const char *pagename, 84extern char *cgit_pageurl(const char *reponame, const char *pagename,
85 const char *query); 85 const char *query);
86 86
87extern void cgit_print_error(char *msg); 87extern void cgit_print_error(char *msg);
88extern void cgit_print_date(unsigned long secs);
88extern void cgit_print_docstart(char *title, struct cacheitem *item); 89extern void cgit_print_docstart(char *title, struct cacheitem *item);
89extern void cgit_print_docend(); 90extern void cgit_print_docend();
90extern void cgit_print_pageheader(char *title); 91extern void cgit_print_pageheader(char *title);
91 92
92extern void cgit_print_repolist(struct cacheitem *item); 93extern void cgit_print_repolist(struct cacheitem *item);
93extern void cgit_print_summary(); 94extern void cgit_print_summary();
94extern void cgit_print_log(const char *tip, int ofs, int cnt); 95extern void cgit_print_log(const char *tip, int ofs, int cnt);
95extern void cgit_print_view(const char *hex); 96extern void cgit_print_view(const char *hex);
96extern void cgit_print_tree(const char *hex); 97extern void cgit_print_tree(const char *hex);
97extern void cgit_print_commit(const char *hex); 98extern void cgit_print_commit(const char *hex);
98 99
99#endif /* CGIT_H */ 100#endif /* CGIT_H */