interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / reftable / table.h

29 lines · 705 bytes Raw Blame History
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
17const char *reftable_table_name(struct reftable_table *t);
18
19int 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 */
26int table_init_block(struct reftable_table *t, struct reftable_block *block,
27 uint64_t next_off, uint8_t want_typ);
28
29#endif