diff options
author | Ian Romanick <[email protected]> | 2018-11-21 13:45:52 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2018-12-16 14:39:56 -0800 |
commit | e3043e1276bfdf368a2ffa3580b5e05c33874041 (patch) | |
tree | 096b92c14ca44e8e0da15753951cc5deb2d946e5 /src/util/hash_table.h | |
parent | db197fdb6c2de62ca84270cffea6a7e09b457f2b (diff) |
util/hash_table: Add _mesa_hash_table_init function
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/util/hash_table.h')
-rw-r--r-- | src/util/hash_table.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/hash_table.h b/src/util/hash_table.h index d89fc1dc1c8..40acda1fd1e 100644 --- a/src/util/hash_table.h +++ b/src/util/hash_table.h @@ -62,6 +62,14 @@ _mesa_hash_table_create(void *mem_ctx, uint32_t (*key_hash_function)(const void *key), bool (*key_equals_function)(const void *a, const void *b)); + +bool +_mesa_hash_table_init(struct hash_table *ht, + void *mem_ctx, + uint32_t (*key_hash_function)(const void *key), + bool (*key_equals_function)(const void *a, + const void *b)); + struct hash_table * _mesa_hash_table_clone(struct hash_table *src, void *dst_mem_ctx); void _mesa_hash_table_destroy(struct hash_table *ht, |