summaryrefslogtreecommitdiff
path: root/pack.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-01-22 21:55:18 -0800
committerJunio C Hamano <junkio@cox.net>2007-01-24 18:08:02 -0800
commita69e542989d0aa1576a4b6820454b9b0d2636796 (patch)
tree1793fa49a60bc1bb827755100f4e2baca5238c55 /pack.h
parent196055c2dbbd8ee41b4afb1c2d035d0c05c963b8 (diff)
downloadgit-a69e542989d0aa1576a4b6820454b9b0d2636796.tar.gz
Refactor the pack header reading function out of receive-pack.c
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'pack.h')
-rw-r--r--pack.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/pack.h b/pack.h
index 821706fbcd..deb427edbe 100644
--- a/pack.h
+++ b/pack.h
@@ -44,4 +44,9 @@ struct pack_header {
#define PACK_IDX_SIGNATURE 0xff744f63 /* "\377tOc" */
extern int verify_pack(struct packed_git *, int);
+
+#define PH_ERROR_EOF (-1)
+#define PH_ERROR_PACK_SIGNATURE (-2)
+#define PH_ERROR_PROTOCOL (-3)
+extern int read_pack_header(int fd, struct pack_header *);
#endif