diff options
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 * |