38af01fa3beac9a4a5fa04ef2e32552e9da6c75a
   1#ifndef __MIDX_H__
   2#define __MIDX_H__
   3
   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        const unsigned char *chunk_pack_names;
  18
  19        char object_dir[FLEX_ARRAY];
  20};
  21
  22struct multi_pack_index *load_multi_pack_index(const char *object_dir);
  23
  24int write_midx_file(const char *object_dir);
  25
  26#endif