4 typedef unsigned int (*HashFunc
)(const void *item
);
5 typedef int (*HashValueCmpFunc
)(const void *a
, const void *b
);
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_