diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Harden the page renderers
Diffstat (limited to 'source/ui-snapshot.h')
-rw-r--r--source/ui-snapshot.h6
1 file changed, 5 insertions, 1 deletion
diff --git a/source/ui-snapshot.h b/source/ui-snapshot.h
index c594168..412807e 100644
--- a/source/ui-snapshot.h
+++ b/source/ui-snapshot.h
@@ -17,6 +17,8 @@ struct cgit_snapshot_format {
const char *suffix;
const char *mimetype;
write_archive_fn_t write_func;
+ // The compressor the writer runs, or NULL when it needs none.
+ const char *program;
};
// Terminated by an entry with a NULL suffix.
@@ -32,7 +34,9 @@ extern unsigned cgit_snapshot_format_bit(const struct cgit_snapshot_format *f);
*/
extern int cgit_parse_snapshots_mask(const char *str);
-// The detached signature stored for this format under refs/notes, if any.
+/*
+ * The detached signature stored for this format under refs/notes, if any.
+ */
extern const struct object_id *cgit_snapshot_get_sig(
const char *ref, const struct cgit_snapshot_format *f);