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