Junio C Hamano | 628522e | 2007-12-29 02:05:47 -0800 | [diff] [blame] | 1 | #ifndef SHA1_LOOKUP_H |
| 2 | #define SHA1_LOOKUP_H |
| 3 | |
Christian Couder | 96beef8 | 2009-04-04 22:59:26 +0200 | [diff] [blame] | 4 | typedef const unsigned char *sha1_access_fn(size_t index, void *table); |
| 5 | |
| 6 | extern int sha1_pos(const unsigned char *sha1, |
| 7 | void *table, |
| 8 | size_t nr, |
| 9 | sha1_access_fn fn); |
| 10 | |
Junio C Hamano | 628522e | 2007-12-29 02:05:47 -0800 | [diff] [blame] | 11 | extern int sha1_entry_pos(const void *table, |
| 12 | size_t elem_size, |
| 13 | size_t key_offset, |
| 14 | unsigned lo, unsigned hi, unsigned nr, |
| 15 | const unsigned char *key); |
| 16 | #endif |