From e31ac31bd394d6c372aa2e8e768537db8504d5a2 Mon Sep 17 00:00:00 2001 From: Russell McConnachie Date: Mon, 28 Mar 2022 21:30:52 +0000 Subject: [PATCH] Add hashmap_set_by_hash, and hashmap_get_by_hash. --- hashmap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hashmap.h b/hashmap.h index fa4a129..b5c146e 100644 --- a/hashmap.h +++ b/hashmap.h @@ -36,7 +36,9 @@ void hashmap_clear(struct hashmap *map, bool update_cap); size_t hashmap_count(struct hashmap *map); bool hashmap_oom(struct hashmap *map); 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_by_hash(struct hashmap *map, const void *key, const void *item); void *hashmap_delete(struct hashmap *map, void *item); void *hashmap_probe(struct hashmap *map, uint64_t position); bool hashmap_scan(struct hashmap *map,