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
@@ -191,84 +191,86 @@ extern int cgit_diff_files(const unsigned char *old_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 */