]>
Commit | Line | Data |
---|---|---|
bb742ede | 1 | /* |
359fc2d2 | 2 | * Copyright (C) the libgit2 contributors. All rights reserved. |
bb742ede VM |
3 | * |
4 | * This file is part of libgit2, distributed under the GNU GPL v2 with | |
5 | * a Linking Exception. For full terms see the included COPYING file. | |
6 | */ | |
dd453c4d MP |
7 | #ifndef INCLUDE_sha1_lookup_h__ |
8 | #define INCLUDE_sha1_lookup_h__ | |
9 | ||
10 | #include <stdlib.h> | |
11 | ||
12 | int sha1_entry_pos(const void *table, | |
87d9869f VM |
13 | size_t elem_size, |
14 | size_t key_offset, | |
15 | unsigned lo, unsigned hi, unsigned nr, | |
16 | const unsigned char *key); | |
dd453c4d | 17 | |
67591c8c VM |
18 | int sha1_position(const void *table, |
19 | size_t stride, | |
20 | unsigned lo, unsigned hi, | |
21 | const unsigned char *key); | |
22 | ||
dd453c4d | 23 | #endif |