mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-24 21:15:12 +00:00
14 lines
467 B
C
14 lines
467 B
C
|
#ifndef HASHTABLE_H_
|
||
|
#define HASHTABLE_H_
|
||
|
|
||
|
typedef unsigned int (*HashFunc)(const void *item);
|
||
|
typedef int (*HashValueCmpFunc)(const void *a, const void *b);
|
||
|
struct HashTable;
|
||
|
|
||
|
struct HashTable *hashtable_new(HashFunc func, HashValueCmpFunc cmp, int size, int valueSize);
|
||
|
void hashtable_free(struct HashTable *ht);
|
||
|
void hashtable_insert(struct HashTable *ht, const void *value);
|
||
|
void *hashtable_query(struct HashTable *ht, const void *value);
|
||
|
|
||
|
#endif // HASHTABLE_H_
|