X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/ab2ab95f09994560f62fd631f07d3b6e3577aa6e..ded9393b173853d2e960f9b176aeb0bc4ed35be2:/cgit.h diff --git a/cgit.h b/cgit.h index 03c2fdb..b7f8827 100644 --- a/cgit.h +++ b/cgit.h @@ -1,10 +1,22 @@ #ifndef CGIT_H #define CGIT_H -#include "git.h" -#include -#include -#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + typedef void (*configfn)(const char *name, const char *value); @@ -21,6 +33,8 @@ struct repoinfo { char *path; char *desc; char *owner; + char *module_link; + int snapshots; }; struct repolist { @@ -57,10 +71,12 @@ extern char *cgit_root_title; extern char *cgit_css; extern char *cgit_logo; extern char *cgit_logo_link; +extern char *cgit_module_link; extern char *cgit_virtual_root; extern char *cgit_cache_root; extern int cgit_nocache; +extern int cgit_snapshots; extern int cgit_max_lock_attempts; extern int cgit_cache_root_ttl; extern int cgit_cache_repo_ttl; @@ -141,7 +157,8 @@ extern void cgit_print_snapshot_start(const char *mimetype, extern void cgit_print_repolist(struct cacheitem *item); extern void cgit_print_summary(); extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep); -extern void cgit_print_view(const char *hex); +extern void cgit_print_view(const char *hex, char *path); +extern void cgit_print_blob(struct cacheitem *item, const char *hex, char *path); extern void cgit_print_tree(const char *hex, char *path); extern void cgit_print_commit(const char *hex); extern void cgit_print_diff(const char *old_hex, const char *new_hex);