aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/hash.h
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2013-08-28 12:32:18 +1000
committerBrian Paul <[email protected]>2013-09-04 07:47:48 -0600
commit60f435319c7046658ece72167c42e09c7a7a44e0 (patch)
tree505528fce2e0a1e297765fa3418351711cf4ef56 /src/mesa/main/hash.h
parentf5badf467155599755258e2370845622d2e8c496 (diff)
mesa: Add a clone function to mesa hash
V2: const qualify table parameter Signed-off-by: Timothy Arceri <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/hash.h')
-rw-r--r--src/mesa/main/hash.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/hash.h b/src/mesa/main/hash.h
index 142d2842c33..b34f32848a5 100644
--- a/src/mesa/main/hash.h
+++ b/src/mesa/main/hash.h
@@ -50,6 +50,9 @@ _mesa_HashDeleteAll(struct _mesa_HashTable *table,
void (*callback)(GLuint key, void *data, void *userData),
void *userData);
+extern struct _mesa_HashTable *
+_mesa_HashClone(const struct _mesa_HashTable *table);
+
extern void
_mesa_HashWalk(const struct _mesa_HashTable *table,
void (*callback)(GLuint key, void *data, void *userData),