Functions | |
PVOLUMEMANAGER | new_VolumeManager (const char *base, const char *prefix) |
Generate new Volume Manager Object. | |
int | mntd_volume_manager_init (PVOLUMEMANAGER pvm) |
Constructor. | |
void | mntd_volume_manager_destroy (PVOLUMEMANAGER pvm) |
Destructor. | |
void | mntd_volume_manager_func_free (void *userdata) |
Callback function for freeing memory for Volume object. | |
void | mntd_volume_manager_add_volume (PVOLUMEMANAGER pvm, const char *udi) |
Add volume to manager. | |
void | mntd_volume_manager_remove_volume (PVOLUMEMANAGER pvm, const char *udi) |
Remove volume from manager. | |
void | mntd_volume_manager_rescan (PVOLUMEMANAGER pvm) |
Rescan devices. | |
void | mntd_volume_manager_foreach_mounted (PVOLUMEMANAGER pvm, int(*func)(void *data, void *userdata), void *userdata) |
call function for each mounted volume | |
char * | mntd_volume_manager_get_mntpnt (PVOLUMEMANAGER pvm, const char *udi) |
Get specific mount point. | |
int | mntd_volume_manager_contains (PVOLUMEMANAGER pvm, const char *udi) |
Check if given volume exists. | |
int | mntd_volume_manager_remount (PVOLUMEMANAGER pvm, const char *udi, int flag) |
Remount specific mount point rd/rw. |
|
Add volume to manager.
Definition at line 227 of file mntd_volume_manager.c. References HASHMAP_::destroy, MSG_WARNING, and new_Volume(). |
|
Check if given volume exists.
Definition at line 366 of file mntd_volume_manager.c. References HASHMAP_::contains. |
|
Destructor.
Definition at line 166 of file mntd_volume_manager.c. References HASHMAP_::destroy. |
|
call function for each mounted volume
Definition at line 308 of file mntd_volume_manager.c. References HASHMAP_::foreach. |
|
Callback function for freeing memory for Volume object.
Definition at line 203 of file mntd_volume_manager.c. References VOLUME_::destroy. Referenced by new_VolumeManager(). |
|
Get specific mount point.
Definition at line 331 of file mntd_volume_manager.c. References VOLUME_::get_mntpnt. |
|
Constructor.
Definition at line 154 of file mntd_volume_manager.c. |
|
Remount specific mount point rd/rw.
Definition at line 386 of file mntd_volume_manager.c. References VOLUME_::remount. |
|
Remove volume from manager.
Definition at line 264 of file mntd_volume_manager.c. References HASHMAP_::remove. |
|
Rescan devices.
Definition at line 291 of file mntd_volume_manager.c. References MSG_ERR. |
|
Generate new Volume Manager Object.
Definition at line 78 of file mntd_volume_manager.c. References HASHMAP_::contains, DEFAULT_BUCKETS, HASHMAP_::destroy, HASHMAP_::init, mntd_volume_manager_func_free(), and new_HashMap(). Referenced by main(). |