X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/b1e172acca870e7999f2d2d917db7b4c42aa05b3..5f323c1ff45c10d8f8b0a673d2fe7e98272f5d78:/cgit.h diff --git a/cgit.h b/cgit.h index f3d2556..ed5cf14 100644 --- a/cgit.h +++ b/cgit.h @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -274,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; @@ -301,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);