diff options
Diffstat (limited to 'src/shared/hashmap.h')
-rw-r--r-- | src/shared/hashmap.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/hashmap.h b/src/shared/hashmap.h index 9789ad77ba..e0ff26c006 100644 --- a/src/shared/hashmap.h +++ b/src/shared/hashmap.h @@ -156,6 +156,10 @@ int hashmap_merge(Hashmap *h, Hashmap *other); static inline int ordered_hashmap_merge(OrderedHashmap *h, OrderedHashmap *other) { return hashmap_merge((Hashmap*) h, (Hashmap*) other); } +int hashmap_reserve(Hashmap *h, unsigned entries_add); +static inline int ordered_hashmap_reserve(OrderedHashmap *h, unsigned entries_add) { + return hashmap_reserve((Hashmap*) h, entries_add); +} void hashmap_move(Hashmap *h, Hashmap *other); static inline void ordered_hashmap_move(OrderedHashmap *h, OrderedHashmap *other) { hashmap_move((Hashmap*) h, (Hashmap*) other); |