From 8ed5305d28d9309d651dfec3fbf4349854694694 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 15 Jan 2015 07:58:07 -0800 Subject: hash_table: Rename insert_with_hash to insert_pre_hashed We already have search_pre_hashed. This makes the APIs match better. Reviewed-by: Matt Turner Reviewed-by: Eric Anholt --- src/util/hash_table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util/hash_table.c') diff --git a/src/util/hash_table.c b/src/util/hash_table.c index ac187b24ca4..81816d1443c 100644 --- a/src/util/hash_table.c +++ b/src/util/hash_table.c @@ -334,8 +334,8 @@ _mesa_hash_table_insert(struct hash_table *ht, const void *key, void *data) } struct hash_entry * -_mesa_hash_table_insert_with_hash(struct hash_table *ht, uint32_t hash, - const void *key, void *data) +_mesa_hash_table_insert_pre_hashed(struct hash_table *ht, uint32_t hash, + const void *key, void *data) { assert(ht->key_hash_function == NULL || hash == ht->key_hash_function(key)); return hash_table_insert(ht, hash, key, data); -- cgit v1.2.3