Raw
1 #include "git-compat-util.h"
2 #include "clar/clar.h"
3 #include "clar-decls.h"
4 #include "git-compat-util.h"
5 #include "reftable/reftable-writer.h"
6 #include "strbuf.h"
7
8 struct reftable_buf;
9
10 void cl_reftable_set_hash(uint8_t *p, int i, enum reftable_hash id);
11
12 struct reftable_writer *cl_reftable_strbuf_writer(struct reftable_buf *buf,
13 enum reftable_hash hash_id,
14 struct reftable_write_options *opts);
15
16 void cl_reftable_write_to_buf(struct reftable_buf *buf,
17 struct reftable_ref_record *refs,
18 size_t nrecords,
19 struct reftable_log_record *logs,
20 size_t nlogs,
21 enum reftable_hash hash_id,
22 struct reftable_write_options *opts);