]> git.proxmox.com Git - libgit2.git/blob - src/sha1_lookup.h
Merge pull request #3097 from libgit2/cmn/submodule-config-state
[libgit2.git] / src / sha1_lookup.h
1 /*
2 * Copyright (C) the libgit2 contributors. All rights reserved.
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 */
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,
13 size_t elem_size,
14 size_t key_offset,
15 unsigned lo, unsigned hi, unsigned nr,
16 const unsigned char *key);
17
18 int sha1_position(const void *table,
19 size_t stride,
20 unsigned lo, unsigned hi,
21 const unsigned char *key);
22
23 #endif