Merge branch 'jc/http'
[git/git.git] / pack.h
CommitLineData
a733cb60
LT
1#ifndef PACK_H
2#define PACK_H
3
1974632c 4#include "object.h"
a733cb60
LT
5
6/*
7 * Packed object header
8 */
9#define PACK_SIGNATURE 0x5041434b /* "PACK" */
16854571 10#define PACK_VERSION 3
d60fc1c8 11#define pack_version_ok(v) ((v) == htonl(2) || (v) == htonl(3))
a733cb60
LT
12struct pack_header {
13 unsigned int hdr_signature;
14 unsigned int hdr_version;
15 unsigned int hdr_entries;
16};
17
f3bf9224 18extern int verify_pack(struct packed_git *, int);
a49dd05f
JH
19extern int check_reuse_pack_delta(struct packed_git *, unsigned long,
20 unsigned char *, unsigned long *,
21 enum object_type *);
a733cb60 22#endif