#include <mntd_volume.h>
Data Fields | |
char * | udi |
Store udi data. | |
char * | device |
Store device name. | |
char * | mntpnt |
Store mount point. | |
char * | fstype |
Store filesystem name. | |
char * | base |
Store mount point base path. | |
int | last_signal |
Store last sent signal. | |
int(* | init )(PVOLUME pv) |
Constructor. | |
void(* | destroy )(PVOLUME pv) |
Destructor. | |
int(* | _send_signal )(PVOLUME pv, int what) |
Send signal to processes listing to dbus. | |
int(* | _send_mounted )(PVOLUME pv) |
Send mounted signal to processes listing to dbus. | |
int(* | _send_unmounted )(PVOLUME pv) |
Send unmounted signal to processes listing to dbus. | |
int(* | set_device )(PVOLUME pv, const char *device) |
Set device name. | |
char *(* | get_device )(PVOLUME pv) |
Get device name. | |
void(* | to_string )(PVOLUME pv) |
Show Device Info. | |
int(* | set_mntpnt )(PVOLUME pv, const char *mntpnt) |
Set device mount point. | |
char *(* | get_mntpnt )(PVOLUME pv) |
Get device mount point. | |
int(* | set_fstype )(PVOLUME pv, const char *fstype) |
Set device mount point. | |
char *(* | get_fstype )(PVOLUME pv) |
Get device filesystem name. | |
int(* | mount )(PVOLUME pv) |
Mount device. | |
int(* | umount )(PVOLUME pv) |
Unmount device. | |
int(* | is_in_mntpath )(PVOLUME pv) |
Check, if volume is in mount path. |
Definition at line 62 of file mntd_volume.h.
|
Send mounted signal to processes listing to dbus.
|
|
Send signal to processes listing to dbus.
|
|
Send unmounted signal to processes listing to dbus.
|
|
Destructor.
|
|
Get device name. String within device name will be copied (with strdup), so you have to free it.
|
|
Get device filesystem name. String within filesystem name will be copied (with strdup), so you have to free it.
|
|
Get device mount point. String within mount point will be copied (with strdup), so you have to free it.
|
|
Constructor.
|
|
Check, if volume is in mount path.
|
|
Mount device.
|
|
Set device name.
|
|
Set device mount point.
|
|
Set device mount point.
|
|
Show Device Info.
|
|
Unmount device. Unmount device, if it is mounted by mntd, or if it's mounted in the path mntd is responsible for. So be careful, what you mount manually and don't want to be unmounted by mntd. Default is "/mnt/mntd" path, so your normal devices on "/mnt" will not be touched.
|