summaryrefslogtreecommitdiff
path: root/src/mesa/shader/hash_table.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2009-07-27 12:17:06 -0700
committerIan Romanick <ian.d.romanick@intel.com>2009-07-27 12:17:06 -0700
commit0044d3ba94f9041492ea90cf8961fd8b55daefda (patch)
treec5c45ffc4f40b722e7705cb71c317a8a59f6b2ca /src/mesa/shader/hash_table.h
parent258f640edab9ca9e71ee255ebe5ddae4b9d0d871 (diff)
Add destructor for hash_table
Diffstat (limited to 'src/mesa/shader/hash_table.h')
-rw-r--r--src/mesa/shader/hash_table.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/shader/hash_table.h b/src/mesa/shader/hash_table.h
index 83ae7f07c7..7b302f5dbe 100644
--- a/src/mesa/shader/hash_table.h
+++ b/src/mesa/shader/hash_table.h
@@ -54,6 +54,15 @@ extern struct hash_table *hash_table_ctor(unsigned num_buckets,
/**
+ * Release all memory associated with a hash table
+ *
+ * \warning
+ * This function cannot release memory occupied either by keys or data.
+ */
+extern void hash_table_dtor(struct hash_table *ht);
+
+
+/**
* Flush all entries from a hash table
*
* \param ht Table to be cleared of its entries.