diff options
author | Nicolai Hähnle <[email protected]> | 2016-01-11 15:07:27 -0500 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-02-03 14:03:35 +0100 |
commit | 55fb921d691f6d2d9e1ab105adb63a61fea7dc50 (patch) | |
tree | bddb67a6c1016f629a6f9771d166247d3fed0e28 /src/util/hash_table.h | |
parent | 8b11d8cfbfaaf72755e6c200140e253cb3e3fa8a (diff) |
util/hash_table: add _mesa_hash_table_num_entries
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/util/hash_table.h')
-rw-r--r-- | src/util/hash_table.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/hash_table.h b/src/util/hash_table.h index 611dcf810dc..85b013cac24 100644 --- a/src/util/hash_table.h +++ b/src/util/hash_table.h @@ -69,6 +69,11 @@ void _mesa_hash_table_clear(struct hash_table *ht, void _mesa_hash_table_set_deleted_key(struct hash_table *ht, const void *deleted_key); +static inline uint32_t _mesa_hash_table_num_entries(struct hash_table *ht) +{ + return ht->entries; +} + struct hash_entry * _mesa_hash_table_insert(struct hash_table *ht, const void *key, void *data); struct hash_entry * |