Update README.md
[sm64pc.git] / tools / hashtable.h
blob91e5460ef2c470a1ecad1cd06f99c4f9ad9b459f
1 #ifndef HASHTABLE_H_
2 #define HASHTABLE_H_
4 typedef unsigned int (*HashFunc)(const void *item);
5 typedef int (*HashValueCmpFunc)(const void *a, const void *b);
6 struct HashTable;
8 struct HashTable *hashtable_new(HashFunc func, HashValueCmpFunc cmp, int size, int valueSize);
9 void hashtable_free(struct HashTable *ht);
10 void hashtable_insert(struct HashTable *ht, const void *value);
11 void *hashtable_query(struct HashTable *ht, const void *value);
13 #endif // HASHTABLE_H_