diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-04-07 15:16:19 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-04-07 14:53:10 -0700 |
| commit | 12a9aa8cb76c120bca7609ac7ae57929d52605e9 (patch) | |
| tree | 6d412c2e5108d81e5d3af6e0535781c007364fb8 /reftable/table.h | |
| parent | 2b3362c10d39efe09fe9ef16122df3bed5149032 (diff) | |
| download | git-12a9aa8cb76c120bca7609ac7ae57929d52605e9.tar.gz | |
reftable/block: rename `block_reader` to `reftable_block`
The `block_reader` structure is used to access parsed data of a reftable
block. The structure is currently treated as an internal implementation
detail and not exposed via our public interfaces. The functionality
provided by the structure is useful to external users of the reftable
library though, for example when implementing consistency checks that
need to scan through the blocks manually.
Rename the structure to `reftable_block` now that the name has been made
available in the preceding commit. This name is in line with the naming
schema used for other data structures like `reftable_table` in that it
describes the underlying entity that it provides access to.
The new data structure isn't yet exposed via the public interface, which
is left for a subsequent commit.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reftable/table.h')
| -rw-r--r-- | reftable/table.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/reftable/table.h b/reftable/table.h index 8d8dd2b413..e15d58d8e9 100644 --- a/reftable/table.h +++ b/reftable/table.h @@ -53,8 +53,10 @@ int table_init_iter(struct reftable_table *t, struct reftable_iterator *it, uint8_t typ); -/* initialize a block reader to read from `t` */ -int table_init_block_reader(struct reftable_table *t, struct block_reader *br, - uint64_t next_off, uint8_t want_typ); +/* + * Initialize a block by reading from the given table and offset. + */ +int table_init_block(struct reftable_table *t, struct reftable_block *block, + uint64_t next_off, uint8_t want_typ); #endif |
