summaryrefslogtreecommitdiffabout
path: root/cgit.h
Unidiff
Diffstat (limited to 'cgit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index d9a15f4..f8f0316 100644
--- a/cgit.h
+++ b/cgit.h
@@ -143,132 +143,134 @@ extern int cgit_cache_repo_ttl;
143extern int cgit_cache_dynamic_ttl; 143extern int cgit_cache_dynamic_ttl;
144extern int cgit_cache_static_ttl; 144extern int cgit_cache_static_ttl;
145extern int cgit_cache_max_create_time; 145extern int cgit_cache_max_create_time;
146extern int cgit_summary_log; 146extern int cgit_summary_log;
147extern int cgit_summary_tags; 147extern int cgit_summary_tags;
148extern int cgit_summary_branches; 148extern int cgit_summary_branches;
149 149
150extern int cgit_max_msg_len; 150extern int cgit_max_msg_len;
151extern int cgit_max_repodesc_len; 151extern int cgit_max_repodesc_len;
152extern int cgit_max_commit_count; 152extern int cgit_max_commit_count;
153 153
154extern int cgit_query_has_symref; 154extern int cgit_query_has_symref;
155extern int cgit_query_has_sha1; 155extern int cgit_query_has_sha1;
156 156
157extern char *cgit_querystring; 157extern char *cgit_querystring;
158extern char *cgit_query_repo; 158extern char *cgit_query_repo;
159extern char *cgit_query_page; 159extern char *cgit_query_page;
160extern char *cgit_query_search; 160extern char *cgit_query_search;
161extern char *cgit_query_head; 161extern char *cgit_query_head;
162extern char *cgit_query_sha1; 162extern char *cgit_query_sha1;
163extern char *cgit_query_sha2; 163extern char *cgit_query_sha2;
164extern char *cgit_query_path; 164extern char *cgit_query_path;
165extern char *cgit_query_name; 165extern char *cgit_query_name;
166extern int cgit_query_ofs; 166extern int cgit_query_ofs;
167 167
168extern int htmlfd; 168extern int htmlfd;
169 169
170extern int cgit_get_cmd_index(const char *cmd); 170extern int cgit_get_cmd_index(const char *cmd);
171extern struct repoinfo *cgit_get_repoinfo(const char *url); 171extern struct repoinfo *cgit_get_repoinfo(const char *url);
172extern void cgit_global_config_cb(const char *name, const char *value); 172extern void cgit_global_config_cb(const char *name, const char *value);
173extern void cgit_repo_config_cb(const char *name, const char *value); 173extern void cgit_repo_config_cb(const char *name, const char *value);
174extern void cgit_querystring_cb(const char *name, const char *value); 174extern void cgit_querystring_cb(const char *name, const char *value);
175 175
176extern int chk_zero(int result, char *msg); 176extern int chk_zero(int result, char *msg);
177extern int chk_positive(int result, char *msg); 177extern int chk_positive(int result, char *msg);
178extern int chk_non_negative(int result, char *msg); 178extern int chk_non_negative(int result, char *msg);
179 179
180extern int hextoint(char c); 180extern int hextoint(char c);
181extern char *trim_end(const char *str, char c); 181extern char *trim_end(const char *str, char c);
182 182
183extern void cgit_add_ref(struct reflist *list, struct refinfo *ref); 183extern void cgit_add_ref(struct reflist *list, struct refinfo *ref);
184extern int cgit_refs_cb(const char *refname, const unsigned char *sha1, 184extern int cgit_refs_cb(const char *refname, const unsigned char *sha1,
185 int flags, void *cb_data); 185 int flags, void *cb_data);
186 186
187extern void *cgit_free_commitinfo(struct commitinfo *info); 187extern void *cgit_free_commitinfo(struct commitinfo *info);
188 188
189extern int cgit_diff_files(const unsigned char *old_sha1, 189extern int cgit_diff_files(const unsigned char *old_sha1,
190 const unsigned char *new_sha1, 190 const unsigned char *new_sha1,
191 linediff_fn fn); 191 linediff_fn fn);
192 192
193extern void cgit_diff_tree(const unsigned char *old_sha1, 193extern void cgit_diff_tree(const unsigned char *old_sha1,
194 const unsigned char *new_sha1, 194 const unsigned char *new_sha1,
195 filepair_fn fn, const char *prefix); 195 filepair_fn fn, const char *prefix);
196 196
197extern void cgit_diff_commit(struct commit *commit, filepair_fn fn); 197extern void cgit_diff_commit(struct commit *commit, filepair_fn fn);
198 198
199extern char *fmt(const char *format,...); 199extern char *fmt(const char *format,...);
200 200
201extern void html(const char *txt); 201extern void html(const char *txt);
202extern void htmlf(const char *format,...); 202extern void htmlf(const char *format,...);
203extern void html_txt(char *txt); 203extern void html_txt(char *txt);
204extern void html_ntxt(int len, char *txt); 204extern void html_ntxt(int len, char *txt);
205extern void html_attr(char *txt); 205extern void html_attr(char *txt);
206extern void html_hidden(char *name, char *value); 206extern void html_hidden(char *name, char *value);
207extern void html_link_open(char *url, char *title, char *class); 207extern void html_link_open(char *url, char *title, char *class);
208extern void html_link_close(void); 208extern void html_link_close(void);
209extern void html_filemode(unsigned short mode); 209extern void html_filemode(unsigned short mode);
210extern int html_include(const char *filename); 210extern int html_include(const char *filename);
211 211
212extern int cgit_read_config(const char *filename, configfn fn); 212extern int cgit_read_config(const char *filename, configfn fn);
213extern int cgit_parse_query(char *txt, configfn fn); 213extern int cgit_parse_query(char *txt, configfn fn);
214extern struct commitinfo *cgit_parse_commit(struct commit *commit); 214extern struct commitinfo *cgit_parse_commit(struct commit *commit);
215extern struct taginfo *cgit_parse_tag(struct tag *tag); 215extern struct taginfo *cgit_parse_tag(struct tag *tag);
216extern void cgit_parse_url(const char *url); 216extern void cgit_parse_url(const char *url);
217 217
218extern char *cache_safe_filename(const char *unsafe); 218extern char *cache_safe_filename(const char *unsafe);
219extern int cache_lock(struct cacheitem *item); 219extern int cache_lock(struct cacheitem *item);
220extern int cache_unlock(struct cacheitem *item); 220extern int cache_unlock(struct cacheitem *item);
221extern int cache_cancel_lock(struct cacheitem *item); 221extern int cache_cancel_lock(struct cacheitem *item);
222extern int cache_exist(struct cacheitem *item); 222extern int cache_exist(struct cacheitem *item);
223extern int cache_expired(struct cacheitem *item); 223extern int cache_expired(struct cacheitem *item);
224 224
225extern char *cgit_repourl(const char *reponame); 225extern char *cgit_repourl(const char *reponame);
226extern char *cgit_fileurl(const char *reponame, const char *pagename, 226extern char *cgit_fileurl(const char *reponame, const char *pagename,
227 const char *filename, const char *query); 227 const char *filename, const char *query);
228extern char *cgit_pageurl(const char *reponame, const char *pagename, 228extern char *cgit_pageurl(const char *reponame, const char *pagename,
229 const char *query); 229 const char *query);
230 230
231extern const char *cgit_repobasename(const char *reponame); 231extern const char *cgit_repobasename(const char *reponame);
232 232
233extern void cgit_tree_link(char *name, char *title, char *class, char *head, 233extern void cgit_tree_link(char *name, char *title, char *class, char *head,
234 char *rev, char *path); 234 char *rev, char *path);
235extern void cgit_log_link(char *name, char *title, char *class, char *head, 235extern void cgit_log_link(char *name, char *title, char *class, char *head,
236 char *rev, char *path, int ofs); 236 char *rev, char *path, int ofs);
237extern void cgit_commit_link(char *name, char *title, char *class, char *head, 237extern void cgit_commit_link(char *name, char *title, char *class, char *head,
238 char *rev); 238 char *rev);
239extern void cgit_refs_link(char *name, char *title, char *class, char *head,
240 char *rev, char *path);
239extern void cgit_snapshot_link(char *name, char *title, char *class, 241extern void cgit_snapshot_link(char *name, char *title, char *class,
240 char *head, char *rev, char *archivename); 242 char *head, char *rev, char *archivename);
241extern void cgit_diff_link(char *name, char *title, char *class, char *head, 243extern void cgit_diff_link(char *name, char *title, char *class, char *head,
242 char *new_rev, char *old_rev, char *path); 244 char *new_rev, char *old_rev, char *path);
243 245
244extern void cgit_object_link(struct object *obj); 246extern void cgit_object_link(struct object *obj);
245 247
246extern void cgit_print_error(char *msg); 248extern void cgit_print_error(char *msg);
247extern void cgit_print_date(time_t secs, char *format); 249extern void cgit_print_date(time_t secs, char *format);
248extern void cgit_print_age(time_t t, time_t max_relative, char *format); 250extern void cgit_print_age(time_t t, time_t max_relative, char *format);
249extern void cgit_print_docstart(char *title, struct cacheitem *item); 251extern void cgit_print_docstart(char *title, struct cacheitem *item);
250extern void cgit_print_docend(); 252extern void cgit_print_docend();
251extern void cgit_print_pageheader(char *title, int show_search); 253extern void cgit_print_pageheader(char *title, int show_search);
252extern void cgit_print_snapshot_start(const char *mimetype, 254extern void cgit_print_snapshot_start(const char *mimetype,
253 const char *filename, 255 const char *filename,
254 struct cacheitem *item); 256 struct cacheitem *item);
255extern void cgit_print_branches(int maxcount); 257extern void cgit_print_branches(int maxcount);
256extern void cgit_print_tags(int maxcount); 258extern void cgit_print_tags(int maxcount);
257 259
258extern void cgit_print_repolist(struct cacheitem *item); 260extern void cgit_print_repolist(struct cacheitem *item);
259extern void cgit_print_summary(); 261extern void cgit_print_summary();
260extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path, int pager); 262extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path, int pager);
261extern void cgit_print_blob(struct cacheitem *item, const char *hex, char *path); 263extern void cgit_print_blob(struct cacheitem *item, const char *hex, char *path);
262extern void cgit_print_tree(const char *rev, char *path); 264extern void cgit_print_tree(const char *rev, char *path);
263extern void cgit_print_commit(char *hex); 265extern void cgit_print_commit(char *hex);
264extern void cgit_print_refs(); 266extern void cgit_print_refs();
265extern void cgit_print_tag(char *revname); 267extern void cgit_print_tag(char *revname);
266extern void cgit_print_diff(const char *new_hex, const char *old_hex, const char *prefix); 268extern void cgit_print_diff(const char *new_hex, const char *old_hex, const char *prefix);
267extern void cgit_print_snapshot(struct cacheitem *item, const char *head, 269extern void cgit_print_snapshot(struct cacheitem *item, const char *head,
268 const char *hex, const char *prefix, 270 const char *hex, const char *prefix,
269 const char *filename, int snapshot); 271 const char *filename, int snapshot);
270extern void cgit_print_snapshot_links(const char *repo, const char *head, 272extern void cgit_print_snapshot_links(const char *repo, const char *head,
271 const char *hex, int snapshots); 273 const char *hex, int snapshots);
272extern int cgit_parse_snapshots_mask(const char *str); 274extern int cgit_parse_snapshots_mask(const char *str);
273 275
274#endif /* CGIT_H */ 276#endif /* CGIT_H */