summaryrefslogtreecommitdiffstats
path: root/src/util/set.h
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <[email protected]>2018-06-25 09:51:20 -0700
committerRafael Antognolli <[email protected]>2018-07-12 14:03:51 -0700
commitb034facfbc446b28f2cc92c32122849a25fb1001 (patch)
treef999a9ccc39fe025b3d0f442cd542b46e03a7371 /src/util/set.h
parent8af0a45b4701aa99616b6d5975025ce793172a9c (diff)
util/set: add a clone function
v2: Add unit test. (Eric Anholt) Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/util/set.h')
-rw-r--r--src/util/set.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/set.h b/src/util/set.h
index 06e79e15867..4db070a6f10 100644
--- a/src/util/set.h
+++ b/src/util/set.h
@@ -58,6 +58,9 @@ _mesa_set_create(void *mem_ctx,
uint32_t (*key_hash_function)(const void *key),
bool (*key_equals_function)(const void *a,
const void *b));
+struct set *
+_mesa_set_clone(struct set *set, void *dst_mem_ctx);
+
void
_mesa_set_destroy(struct set *set,
void (*delete_function)(struct set_entry *entry));