util/hash_table: add helper to remove entry by key
[mesa.git] / src / util / hash_table.h
index 3846dad4b4a9abb2a79ba311a8b4146efb04e395..40ff041e94ba1bd57bc682307e1f2778865f54e6 100644 (file)
@@ -88,6 +88,8 @@ _mesa_hash_table_search_pre_hashed(struct hash_table *ht, uint32_t hash,
                                   const void *key);
 void _mesa_hash_table_remove(struct hash_table *ht,
                              struct hash_entry *entry);
+void _mesa_hash_table_remove_key(struct hash_table *ht,
+                                 const void *key);
 
 struct hash_entry *_mesa_hash_table_next_entry(struct hash_table *ht,
                                                struct hash_entry *entry);