Revision 2f0b5fa4591faa293f06f5a1e58e22f713973861 authored by Junio C Hamano on 20 May 2011, 04:02:14 UTC, committed by Junio C Hamano on 20 May 2011, 04:02:14 UTC
* jc/maint-1.7.4-pathspec-stdin-and-cmdline:
2 parent s ac39c5f + 1b6d0ae
Raw File
sha1-lookup.h
#ifndef SHA1_LOOKUP_H
#define SHA1_LOOKUP_H

typedef const unsigned char *sha1_access_fn(size_t index, void *table);

extern int sha1_pos(const unsigned char *sha1,
		    void *table,
		    size_t nr,
		    sha1_access_fn fn);

extern int sha1_entry_pos(const void *table,
			  size_t elem_size,
			  size_t key_offset,
			  unsigned lo, unsigned hi, unsigned nr,
			  const unsigned char *key);
#endif
back to top