X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=cache.h;h=497a05b8fa8e9aa3a5db9b42e5c50392f352d2b4;hb=d6d3f9d0125a7215f3cdc2600b2307ca55b69536;hp=2581117a185fe5cdce38612d82a737ef0636d433;hpb=197ee8c97076ee784db9f4b5a9294e86f42d068c;p=git.git diff --git a/cache.h b/cache.h index 2581117a..497a05b8 100644 --- a/cache.h +++ b/cache.h @@ -96,7 +96,7 @@ extern int write_sha1_buffer(unsigned char *sha1, void *buf, unsigned int size); extern void * map_sha1_file(unsigned char *sha1, unsigned long *size); extern void * unpack_sha1_file(void *map, unsigned long mapsize, char *type, unsigned long *size); extern void * read_sha1_file(unsigned char *sha1, char *type, unsigned long *size); -extern int write_sha1_file(char *buf, unsigned len); +extern int write_sha1_file(char *buf, unsigned len, unsigned char *return_sha1); extern int check_sha1_signature(unsigned char *sha1, void *buf, unsigned long size); /* Convert to/from hex/sha1 representation */ @@ -105,5 +105,6 @@ extern char *sha1_to_hex(const unsigned char *sha1); /* static buffer result! */ /* General helper functions */ extern void usage(const char *err); +extern int cache_name_compare(const char *name1, int len1, const char *name2, int len2); #endif /* CACHE_H */