multi-pack-index: read packfile list
[git/git.git] / midx.h
CommitLineData
a3407730
DS
1#ifndef __MIDX_H__
2#define __MIDX_H__
3
4d80560c
DS
4struct multi_pack_index {
5 int fd;
6
7 const unsigned char *data;
8 size_t data_len;
9
10 uint32_t signature;
11 unsigned char version;
12 unsigned char hash_len;
13 unsigned char num_chunks;
14 uint32_t num_packs;
15 uint32_t num_objects;
16
17 char object_dir[FLEX_ARRAY];
18};
19
20struct multi_pack_index *load_multi_pack_index(const char *object_dir);
21
a3407730
DS
22int write_midx_file(const char *object_dir);
23
24#endif