#include <mntd_volume_hash.h>
Data Fields | |
| CHTbl * | hm |
| Pointer to chained hashmap table. | |
| unsigned int | bucket |
| Number of buckets to be used. | |
| int(* | init )(PHASHMAP phm) |
| HashMap Constructor. | |
| int(* | hash )(const void *obj) |
| HashMap hash for element. | |
| int(* | compare )(const void *obj1, const void *obj2) |
| HashMap compare for element. | |
| void(* | free )(void *data) |
| HashMap hash for element. | |
| void(* | cb_free_element )(void *data) |
| Free callback pointer for hashmap element (to free users data). | |
| void(* | destroy )(PHASHMAP phm) |
| HashMap Destructor. | |
| int(* | add )(PHASHMAP phm, const char *key, void *data) |
| Add to HashMap. | |
| int(* | remove )(PHASHMAP phm, const char *key) |
| Remove from HashMap. | |
| int(* | size )(PHASHMAP phm) |
| Size of HashMap. | |
| int(* | contains )(PHASHMAP phm, const char *key) |
| HashMap contains. | |
| int(* | get )(PHASHMAP phm, const char *key, void **userdata) |
| Get userdata from HashMap. | |
| int(* | update )(PHASHMAP phm, const char *key, void *userdata) |
| Update element in HashMap. | |
| int(* | foreach )(PHASHMAP phm, int(*func)(void *data, void *userdata), void *userdata) |
| Iterate over HashMap. | |
Definition at line 93 of file mntd_volume_hash.h.
|
|
Add to HashMap.
|
|
|
HashMap contains.
Referenced by mntd_volume_manager_contains(), and new_VolumeManager(). |
|
|
HashMap Destructor. Call it to free to hashmap
Referenced by mntd_volume_manager_add_volume(), mntd_volume_manager_destroy(), and new_VolumeManager(). |
|
|
Iterate over HashMap.
Referenced by mntd_volume_manager_foreach_mounted(). |
|
|
Get userdata from HashMap.
|
|
|
Remove from HashMap.
Referenced by mntd_volume_manager_remove_volume(). |
|
|
Size of HashMap.
|
|
|
Update element in HashMap.
|
1.3.9.1