55,7 → 55,7 |
* |
* @return Index into hash table. |
*/ |
index_t (* hash)(__native key[]); |
index_t (* hash)(unative_t key[]); |
|
/** Hash table item comparison function. |
* |
63,7 → 63,7 |
* |
* @return true if the keys match, false otherwise. |
*/ |
bool (*compare)(__native key[], count_t keys, link_t *item); |
bool (*compare)(unative_t key[], count_t keys, link_t *item); |
|
/** Hash table item removal callback. |
* |
75,9 → 75,9 |
#define hash_table_get_instance(item, type, member) list_get_instance((item), type, member) |
|
extern void hash_table_create(hash_table_t *h, count_t m, count_t max_keys, hash_table_operations_t *op); |
extern void hash_table_insert(hash_table_t *h, __native key[], link_t *item); |
extern link_t *hash_table_find(hash_table_t *h, __native key[]); |
extern void hash_table_remove(hash_table_t *h, __native key[], count_t keys); |
extern void hash_table_insert(hash_table_t *h, unative_t key[], link_t *item); |
extern link_t *hash_table_find(hash_table_t *h, unative_t key[]); |
extern void hash_table_remove(hash_table_t *h, unative_t key[], count_t keys); |
|
#endif |
|