diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-02-14 11:42:36 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-02-14 14:45:25 +0000 |
commit | 9f0a4220decbb0adaf8aa63d506cf01c55e3204c (patch) | |
tree | bc1f044bb9b48872137b31b383ff7d89ab9d06a6 /contrib/libucl/ucl_hash.h | |
parent | a755e38112262b462ee2c95eedb71299c688ee5e (diff) | |
download | rspamd-9f0a4220decbb0adaf8aa63d506cf01c55e3204c.tar.gz rspamd-9f0a4220decbb0adaf8aa63d506cf01c55e3204c.zip |
[Feature] Allow to reserve elements in libucl
Diffstat (limited to 'contrib/libucl/ucl_hash.h')
-rw-r--r-- | contrib/libucl/ucl_hash.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/libucl/ucl_hash.h b/contrib/libucl/ucl_hash.h index 92021e340..f474b462a 100644 --- a/contrib/libucl/ucl_hash.h +++ b/contrib/libucl/ucl_hash.h @@ -90,4 +90,10 @@ const void* ucl_hash_iterate (ucl_hash_t *hashlin, ucl_hash_iter_t *iter); */ bool ucl_hash_iter_has_next (ucl_hash_t *hashlin, ucl_hash_iter_t iter); +/** + * Reserves space in hash + * @param hashlin + */ +void ucl_hash_reserve (ucl_hash_t *hashlin, size_t sz); + #endif |