2005-06-28 15:21:02 -06:00
|
|
|
#ifndef PACK_H
|
|
|
|
#define PACK_H
|
|
|
|
|
2006-07-11 21:45:31 -06:00
|
|
|
#include "object.h"
|
2005-06-28 15:21:02 -06:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Packed object header
|
|
|
|
*/
|
|
|
|
#define PACK_SIGNATURE 0x5041434b /* "PACK" */
|
2006-10-15 00:37:41 -06:00
|
|
|
#define PACK_VERSION 2
|
2006-02-09 15:50:04 -07:00
|
|
|
#define pack_version_ok(v) ((v) == htonl(2) || (v) == htonl(3))
|
2005-06-28 15:21:02 -06:00
|
|
|
struct pack_header {
|
|
|
|
unsigned int hdr_signature;
|
|
|
|
unsigned int hdr_version;
|
|
|
|
unsigned int hdr_entries;
|
|
|
|
};
|
|
|
|
|
2005-06-30 18:15:39 -06:00
|
|
|
extern int verify_pack(struct packed_git *, int);
|
2005-06-28 15:21:02 -06:00
|
|
|
#endif
|