1#ifndef __MIDX_H__
2#define __MIDX_H__
34
struct multi_pack_index {
5int fd;
67
const unsigned char *data;
8size_t data_len;
910
uint32_t signature;
11unsigned char version;
12unsigned char hash_len;
13unsigned char num_chunks;
14uint32_t num_packs;
15uint32_t num_objects;
1617
char object_dir[FLEX_ARRAY];
18};
1920
struct multi_pack_index *load_multi_pack_index(const char *object_dir);
2122
int write_midx_file(const char *object_dir);
2324
#endif