summaryrefslogtreecommitdiffstats
path: root/src/util/hash_table.h
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-01-06 14:50:46 -0500
committerNicolai Hähnle <[email protected]>2016-02-03 14:03:25 +0100
commit8b11d8cfbfaaf72755e6c200140e253cb3e3fa8a (patch)
tree94f35edeae0838227c433092b97a474b05222a75 /src/util/hash_table.h
parent6ad2e55a1405ac3757439dae55ed86425bb65806 (diff)
util/hash_table: add _mesa_hash_table_clear (v4)
v4: coding style change (Matt Turner) Reviewed-by: Ian Romanick <[email protected]> (v3)
Diffstat (limited to 'src/util/hash_table.h')
-rw-r--r--src/util/hash_table.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/hash_table.h b/src/util/hash_table.h
index eb9dbc333ec..611dcf810dc 100644
--- a/src/util/hash_table.h
+++ b/src/util/hash_table.h
@@ -64,6 +64,8 @@ _mesa_hash_table_create(void *mem_ctx,
const void *b));
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,
+ void (*delete_function)(struct hash_entry *entry));
void _mesa_hash_table_set_deleted_key(struct hash_table *ht,
const void *deleted_key);