aboutsummaryrefslogtreecommitdiffstats
path: root/reftable/reftable-block.h
diff options
context:
space:
mode:
Diffstat (limited to 'reftable/reftable-block.h')
-rw-r--r--reftable/reftable-block.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/reftable/reftable-block.h b/reftable/reftable-block.h
index 13bd68be8c..04c3b518c8 100644
--- a/reftable/reftable-block.h
+++ b/reftable/reftable-block.h
@@ -13,6 +13,7 @@
#include "reftable-basics.h"
#include "reftable-blocksource.h"
+#include "reftable-iterator.h"
struct z_stream_s;
@@ -60,6 +61,10 @@ int reftable_block_init(struct reftable_block *b,
/* Release resources allocated by the block. */
void reftable_block_release(struct reftable_block *b);
+/* Initialize a generic record iterator from the given block. */
+int reftable_block_init_iterator(const struct reftable_block *b,
+ struct reftable_iterator *it);
+
/* Returns the block type (eg. 'r' for refs). */
uint8_t reftable_block_type(const struct reftable_block *b);