]> git.ipfire.org Git - thirdparty/git.git/blame - sha1-lookup.h
Merge branch 'jc/maint-imap-config-parse' into maint
[thirdparty/git.git] / sha1-lookup.h
CommitLineData
628522ec
JH
1#ifndef SHA1_LOOKUP_H
2#define SHA1_LOOKUP_H
3
96beef8c
CC
4typedef const unsigned char *sha1_access_fn(size_t index, void *table);
5
6extern int sha1_pos(const unsigned char *sha1,
7 void *table,
8 size_t nr,
9 sha1_access_fn fn);
10
628522ec
JH
11extern 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