multi-pack-index: write pack names in chunk
[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
32f3c541
DS
17 const unsigned char *chunk_pack_names;
18
4d80560c
DS
19 char object_dir[FLEX_ARRAY];
20};
21
22struct multi_pack_index *load_multi_pack_index(const char *object_dir);
23
a3407730
DS
24int write_midx_file(const char *object_dir);
25
26#endif