Add hashmap_set_by_hash, and hashmap_get_by_hash.

pull/20/head
Russell McConnachie 3 years ago
parent ffd638a0b4
commit e31ac31bd3

@ -36,7 +36,9 @@ void hashmap_clear(struct hashmap *map, bool update_cap);
size_t hashmap_count(struct hashmap *map); size_t hashmap_count(struct hashmap *map);
bool hashmap_oom(struct hashmap *map); bool hashmap_oom(struct hashmap *map);
void *hashmap_get(struct hashmap *map, const void *item); void *hashmap_get(struct hashmap *map, const void *item);
void *hashmap_get_by_hash(struct hashmap *map, const void *item);
void *hashmap_set(struct hashmap *map, const void *item); void *hashmap_set(struct hashmap *map, const void *item);
void *hashmap_set_by_hash(struct hashmap *map, const void *key, const void *item);
void *hashmap_delete(struct hashmap *map, void *item); void *hashmap_delete(struct hashmap *map, void *item);
void *hashmap_probe(struct hashmap *map, uint64_t position); void *hashmap_probe(struct hashmap *map, uint64_t position);
bool hashmap_scan(struct hashmap *map, bool hashmap_scan(struct hashmap *map,

Loading…
Cancel
Save