X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=csum-file.h;h=7e1339189dcdc6e271fad5df7ad427954642ae9e;hb=refs%2Ftags%2Fv1.5.2.1;hp=3ad1a992a758fc9339baa2cecc17ac14af359f1b;hpb=e94b4d2f2a3a9b2aaaac15c33d5d31f76531ecbf;p=git.git diff --git a/csum-file.h b/csum-file.h index 3ad1a992a..7e1339189 100644 --- a/csum-file.h +++ b/csum-file.h @@ -7,6 +7,8 @@ struct sha1file { unsigned int offset, namelen; SHA_CTX ctx; char name[PATH_MAX]; + int do_crc; + uint32_t crc32; unsigned char buffer[8192]; }; @@ -15,5 +17,7 @@ extern struct sha1file *sha1create(const char *fmt, ...) __attribute__((format ( extern int sha1close(struct sha1file *, unsigned char *, int); extern int sha1write(struct sha1file *, void *, unsigned int); extern int sha1write_compressed(struct sha1file *, void *, unsigned int); +extern void crc32_begin(struct sha1file *); +extern uint32_t crc32_end(struct sha1file *); #endif