source: trunk/minix/commands/i386/mtools-3.9.7/htable.h@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 522 bytes
Line 
1/*
2 * hashtable
3 */
4
5typedef struct hashtable T_HashTable;
6typedef void *T_HashTableEl;
7typedef unsigned int (*T_HashFunc)(void *);
8typedef int (*T_ComparFunc)(void *, void *);
9
10
11int make_ht(T_HashFunc f1, T_HashFunc f2, T_ComparFunc c, int size, T_HashTable **H);
12int hash_add(T_HashTable *H, T_HashTableEl *E, int *hint);
13int hash_remove(T_HashTable *H, T_HashTableEl *E, int hint);
14int hash_lookup(T_HashTable *H, T_HashTableEl *E, T_HashTableEl **E2,
15 int *hint);
16int free_ht(T_HashTable *H, T_HashFunc entry_free);
17
Note: See TracBrowser for help on using the repository browser.