Functions | |
PVOLUMEMANAGER | new_VolumeManager (const char *config) |
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_new_volume_capability (PVOLUMEMANAGER pvm, const char *udi, const char *capability) |
Add volume capability to volume. | |
void | mntd_volume_manager_add_volume_property (PVOLUMEMANAGER pvm, const char *udi, const char *property) |
Add volume property. | |
void | mntd_volume_manager_remove_volume_property (PVOLUMEMANAGER pvm, const char *udi, const char *property) |
Remove volume property. | |
void | mntd_volume_manager_change_volume_property (PVOLUMEMANAGER pvm, const char *udi, const char *property) |
Change volume property. | |
void | mntd_volume_manager_rescan (PVOLUMEMANAGER pvm) |
Rescan HAL 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. |
|
Add volume to manager.
Definition at line 225 of file mntd_volume_manager.c. References new_Volume(), vmh_hal_device_is_volume(), and vmh_try_n_set_volumes_data(). Referenced by new_VolumeManager(). |
|
Add volume property.
Definition at line 323 of file mntd_volume_manager.c. References vmh_try_n_set_volumes_data_by_property(). Referenced by new_VolumeManager(). |
|
Change volume property.
Definition at line 387 of file mntd_volume_manager.c. References vmh_try_n_set_volumes_data_by_property(). Referenced by new_VolumeManager(). |
|
Check if given volume exists.
Definition at line 510 of file mntd_volume_manager.c. Referenced by new_VolumeManager(). |
|
Destructor.
Definition at line 164 of file mntd_volume_manager.c. Referenced by new_VolumeManager(). |
|
call function for each mounted volume
Definition at line 452 of file mntd_volume_manager.c. Referenced by new_VolumeManager(). |
|
Callback function for freeing memory for Volume object.
Definition at line 201 of file mntd_volume_manager.c. Referenced by new_VolumeManager(). |
|
Get specific mount point.
Definition at line 475 of file mntd_volume_manager.c. Referenced by new_VolumeManager(). |
|
Constructor.
Definition at line 152 of file mntd_volume_manager.c. References mntd_volume_config_parse(). Referenced by new_VolumeManager(). |
|
Add volume capability to volume.
Definition at line 291 of file mntd_volume_manager.c. References vmh_try_n_set_volumes_data_by_property(). Referenced by new_VolumeManager(). |
|
Remove volume from manager.
Definition at line 262 of file mntd_volume_manager.c. Referenced by new_VolumeManager(). |
|
Remove volume property.
Definition at line 355 of file mntd_volume_manager.c. References vmh_try_n_set_volumes_data_by_property(). Referenced by new_VolumeManager(). |
|
Rescan HAL devices.
Definition at line 417 of file mntd_volume_manager.c. References MSG_ERR, vmh_hal_device_is_safe(), and vmh_hal_device_is_volume(). Referenced by new_VolumeManager(). |
|
Generate new Volume Manager Object.
Definition at line 82 of file mntd_volume_manager.c. References DEFAULT_BUCKETS, mntd_volume_manager_add_volume(), mntd_volume_manager_add_volume_property(), mntd_volume_manager_change_volume_property(), mntd_volume_manager_contains(), mntd_volume_manager_destroy(), mntd_volume_manager_foreach_mounted(), mntd_volume_manager_func_free(), mntd_volume_manager_get_mntpnt(), mntd_volume_manager_init(), mntd_volume_manager_new_volume_capability(), mntd_volume_manager_remove_volume(), mntd_volume_manager_remove_volume_property(), mntd_volume_manager_rescan(), and new_HashMap(). Referenced by main(). |