diff options
author | Thomas Helland <[email protected]> | 2017-01-09 23:01:50 +0100 |
---|---|---|
committer | Thomas Helland <[email protected]> | 2018-03-14 19:52:01 +0100 |
commit | 6baaf4291b7ee83a50038a215412ab1de75b0f32 (patch) | |
tree | 7cb03d6327e71caf857f7b1ba43f8c9e122ab560 /src/util/hash_table.h | |
parent | 388ed470811e2def86deed723a9e88eda8cef14f (diff) |
util: Implement a hash table cloning function
V2: Don't rzalloc; we are about to rewrite the whole thing (Vladislav)
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/util/hash_table.h')
-rw-r--r-- | src/util/hash_table.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/hash_table.h b/src/util/hash_table.h index d3e0758b265..3846dad4b4a 100644 --- a/src/util/hash_table.h +++ b/src/util/hash_table.h @@ -62,6 +62,8 @@ _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)); +struct hash_table * +_mesa_hash_table_clone(struct hash_table *src, void *dst_mem_ctx); void _mesa_hash_table_destroy(struct hash_table *ht, void (*delete_function)(struct hash_entry *entry)); void _mesa_hash_table_clear(struct hash_table *ht, |