libdebian-installer
Data Fields
di_hash_table Struct Reference

Hash table. More...

Data Fields

size_t size
 
size_t nnodes
 
di_hash_node ** nodes
 
di_mem_chunkmem_chunk
 
di_hash_funchash_func
 
di_equal_funckey_equal_func
 
di_destroy_notifykey_destroy_func
 
di_destroy_notifyvalue_destroy_func
 

Detailed Description

Hash table.

Field Documentation

di_hash_func* hash_func

hashing function

Referenced by di_hash_table_new_full().

di_destroy_notify* key_destroy_func

key destroy function, may NULL

Referenced by di_hash_table_destroy(), di_hash_table_insert(), and di_hash_table_new_full().

di_equal_func* key_equal_func

key compare function

Referenced by di_hash_table_new_full().

di_mem_chunk* mem_chunk

di_mem_chunk for allocating the nodes (di_hash_node)

Referenced by di_hash_table_destroy(), and di_hash_table_new_full().

size_t nnodes
di_hash_node** nodes
size_t size
di_destroy_notify* value_destroy_func

value destroy function, may NULL

Referenced by di_hash_table_destroy(), di_hash_table_insert(), and di_hash_table_new_full().