]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.h
Refactor snapshot support
[ps-cgit] / cgit.h
diff --git a/cgit.h b/cgit.h
index 295441bc08e0400ed066a8ce21952cfd6c41ff2c..e2d5126035cf865657a87d9f83b106ac9a7d6061 100644 (file)
--- a/cgit.h
+++ b/cgit.h
@@ -177,10 +177,18 @@ struct cgit_context {
        struct cgit_page page;
 };
 
+struct cgit_snapshot_format {
+       const char *suffix;
+       const char *mimetype;
+       write_archive_fn_t write_func;
+       int bit;
+};
+
 extern const char *cgit_version;
 
 extern struct cgit_repolist cgit_repolist;
 extern struct cgit_context ctx;
+extern const struct cgit_snapshot_format cgit_snapshot_formats[];
 extern int cgit_cmd;
 
 extern void cgit_prepare_context(struct cgit_context *ctx);