X-Git-Url: https://git.cameronkatri.com/cgit.git/blobdiff_plain/74620f12e4f7e91cb0a0b4ca731e07272d1b65f6..2101e26fd68f816e77de62b93df4c32fd1110d0c:/cgit.h diff --git a/cgit.h b/cgit.h index bf5bd8d..268db53 100644 --- a/cgit.h +++ b/cgit.h @@ -15,6 +15,14 @@ struct cacheitem { int fd; }; +struct commitinfo { + struct commit *commit; + char *author; + char *committer; + char *subject; + char *msg; +}; + extern const char cgit_version[]; extern char *cgit_root; @@ -44,9 +52,14 @@ extern char *cgit_query_repo; extern char *cgit_query_page; extern char *cgit_query_head; extern char *cgit_query_sha1; +extern int cgit_query_ofs; extern int htmlfd; +extern void cgit_global_config_cb(const char *name, const char *value); +extern void cgit_repo_config_cb(const char *name, const char *value); +extern void cgit_querystring_cb(const char *name, const char *value); + extern char *fmt(const char *format,...); extern void html(const char *txt); @@ -58,10 +71,12 @@ extern void html_link_close(void); extern int cgit_read_config(const char *filename, configfn fn); extern int cgit_parse_query(char *txt, configfn fn); +extern struct commitinfo *cgit_parse_commit(struct commit *commit); extern void cache_prepare(struct cacheitem *item); extern int cache_lock(struct cacheitem *item); extern int cache_unlock(struct cacheitem *item); +extern int cache_cancel_lock(struct cacheitem *item); extern int cache_exist(struct cacheitem *item); extern int cache_expired(struct cacheitem *item); @@ -75,8 +90,9 @@ extern void cgit_print_docend(); extern void cgit_print_pageheader(char *title); extern void cgit_print_repolist(struct cacheitem *item); - - -extern void cgit_repo_config_cb(const char *name, const char *value); +extern void cgit_print_summary(); +extern void cgit_print_log(const char *tip, int ofs, int cnt); +extern void cgit_print_view(char *hex); +extern void cgit_print_tree(const char *sha1); #endif /* CGIT_H */