The seventh batch
[git/debian.git] / reftable / blocksource.h
blob072e2727ad205d4319e60a7d93a62a560831edec
1 /*
2 Copyright 2020 Google LLC
4 Use of this source code is governed by a BSD-style
5 license that can be found in the LICENSE file or at
6 https://developers.google.com/open-source/licenses/bsd
7 */
9 #ifndef BLOCKSOURCE_H
10 #define BLOCKSOURCE_H
12 #include "system.h"
14 struct reftable_block_source;
16 /* Create an in-memory block source for reading reftables */
17 void block_source_from_strbuf(struct reftable_block_source *bs,
18 struct strbuf *buf);
20 struct reftable_block_source malloc_block_source(void);
22 #endif