diff options
author | Marek Olšák <[email protected]> | 2020-02-05 14:10:48 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-26 20:35:50 +0000 |
commit | a01a875081bd52bc1c3c142a60af678171ce6c33 (patch) | |
tree | 395290b39796f09ee465fda4fbbb07354c57cb26 /src/gallium/auxiliary/util/u_hash_table.h | |
parent | 56f31328f207f310ee9b53f3294a23b25b2687e0 (diff) |
gallium/hash_table: consolidate hash tables with pointer keys
Reviewed-by: Kristian H. Kristensen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3722>
Diffstat (limited to 'src/gallium/auxiliary/util/u_hash_table.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_hash_table.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_hash_table.h b/src/gallium/auxiliary/util/u_hash_table.h index ac00db8a00b..cf0c58cd287 100644 --- a/src/gallium/auxiliary/util/u_hash_table.h +++ b/src/gallium/auxiliary/util/u_hash_table.h @@ -59,6 +59,12 @@ struct util_hash_table * util_hash_table_create(unsigned (*hash)(void *key), int (*compare)(void *key1, void *key2)); +/** + * Create a hash table where the keys are generic pointers. + */ +struct util_hash_table * +util_hash_table_create_ptr_keys(void); + enum pipe_error util_hash_table_set(struct util_hash_table *ht, |