Archived
1
0
Fork 0
This repository has been archived on 2025-03-06. You can view files and clone it, but cannot push or open issues or pull requests.
sm64/tools/hashtable.h
2019-08-25 00:46:40 -04:00

13 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_