X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/792f813d342013124ce40142fef4afee3ff00df3..5f323c1ff45c10d8f8b0a673d2fe7e98272f5d78:/cgit.h diff --git a/cgit.h b/cgit.h index 7a99135..ed5cf14 100644 --- a/cgit.h +++ b/cgit.h @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -203,6 +204,7 @@ struct cgit_config { int enable_filter_overrides; int enable_http_clone; int enable_index_links; + int enable_index_owner; int enable_commit_graph; int enable_log_filecount; int enable_log_linecount; @@ -273,6 +275,8 @@ struct cgit_context { struct cgit_page page; }; +typedef int (*write_archive_fn_t)(const char *, const char *); + struct cgit_snapshot_format { const char *suffix; const char *mimetype; @@ -300,6 +304,7 @@ extern char *strlpart(char *txt, int maxlen); extern char *strrpart(char *txt, int maxlen); extern void cgit_add_ref(struct reflist *list, struct refinfo *ref); +extern void cgit_free_reflist_inner(struct reflist *list); extern int cgit_refs_cb(const char *refname, const unsigned char *sha1, int flags, void *cb_data);