| 1 | /* |
| 2 | * Copyright 2020 Google LLC |
| 3 | * |
| 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 | */ |
| 8 | |
| 9 | #ifndef TABLE_H |
| 10 | #define TABLE_H |
| 11 | |
| 12 | #include "block.h" |
| 13 | #include "record.h" |
| 14 | #include "reftable-iterator.h" |
| 15 | #include "reftable-table.h" |
| 16 | |
| 17 | const char *reftable_table_name(struct reftable_table *t); |
| 18 | |
| 19 | int table_init_iter(struct reftable_table *t, |
| 20 | struct reftable_iterator *it, |
| 21 | uint8_t typ); |
| 22 | |
| 23 | /* |
| 24 | * Initialize a block by reading from the given table and offset. |
| 25 | */ |
| 26 | int table_init_block(struct reftable_table *t, struct reftable_block *block, |
| 27 | uint64_t next_off, uint8_t want_typ); |
| 28 | |
| 29 | #endif |