diff options
author | Caio Marcelo de Oliveira Filho <[email protected]> | 2018-07-12 11:17:04 -0700 |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <[email protected]> | 2018-07-13 14:20:49 -0700 |
commit | 4ec8b39fcd8086ff73334dcb31491d907ac08e85 (patch) | |
tree | d0480fbbdc0f5e478a7935ca3ed05e55e79b232d /src/util/hash_table.h | |
parent | a3150c1d06ae7766c3d3fe3b33432e55c3c7527e (diff) |
util/hash_table: add helper to remove entry by key
And the corresponding test case.
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/util/hash_table.h')
-rw-r--r-- | src/util/hash_table.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/hash_table.h b/src/util/hash_table.h index 3846dad4b4a..40ff041e94b 100644 --- a/src/util/hash_table.h +++ b/src/util/hash_table.h @@ -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); |