Main Page | Modules | Data Structures | File List | Data Fields | Related Pages

VOLUME_ Struct Reference

main volume structure More...

#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.
char * prefix
 Store mount point prefix.
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(* remount )(PVOLUME pv, int flag)
 Remount specific mount point rd/rw.
int(* is_in_mntpath )(PVOLUME pv)
 Check, if volume is in mount path.


Detailed Description

main volume structure

Definition at line 63 of file mntd_volume.h.


Field Documentation

void(* VOLUME_::destroy)(PVOLUME pv)
 

Destructor.

Parameters:
pv Pointer to Volume Object

Referenced by mntd_volume_manager_func_free(), and new_Volume().

char*(* VOLUME_::get_device)(PVOLUME pv)
 

Get device name.

String within device name will be copied (with strdup), so you have to free it.

Parameters:
pv Pointer to Volume Object
Returns:
Name of device if already set, or NULL otherwise

Referenced by new_Volume().

char*(* VOLUME_::get_fstype)(PVOLUME pv)
 

Get device filesystem name.

String within filesystem name will be copied (with strdup), so you have to free it.

Parameters:
pv Pointer to Volume Object
Returns:
fstype if already set, or NULL otherwise

Referenced by new_Volume().

char*(* VOLUME_::get_mntpnt)(PVOLUME pv)
 

Get device mount point.

String within mount point will be copied (with strdup), so you have to free it.

Parameters:
pv Pointer to Volume Object
Returns:
mount point if already set, or NULL otherwise

Referenced by mntd_dbus_manager_get_mntpnt(), mntd_volume_manager_get_mntpnt(), mntd_volume_umount(), and new_Volume().

int(* VOLUME_::is_in_mntpath)(PVOLUME pv)
 

Check, if volume is in mount path.

Parameters:
pv Pointer to Volume Object
Returns:
true if mounted, false otherwise

Referenced by new_Volume().

int(* VOLUME_::mount)(PVOLUME pv)
 

Mount device.

Parameters:
pv Pointer to Volume Object
Returns:
0 if successful, -1 otherwise

Referenced by mntd_volume_set_device(), and new_Volume().

int(* VOLUME_::remount)(PVOLUME pv, int flag)
 

Remount specific mount point rd/rw.

Parameters:
pv Pointer to Volume Object
flag MOUNT_RD | MOUNT_RW
Returns:
0 if successful, -1 otherwise

Referenced by mntd_dbus_manager_remount(), mntd_volume_destroy(), mntd_volume_manager_remount(), and new_Volume().

int(* VOLUME_::set_device)(PVOLUME pv, const char *device)
 

Set device name.

Parameters:
pv Pointer to Volume Object
device Name of device
Returns:
0 if successful, -1 otherwise

Referenced by new_Volume().

int(* VOLUME_::set_fstype)(PVOLUME pv, const char *fstype)
 

Set device mount point.

Parameters:
pv Pointer to Volume Object
fstype Set filesystem name
Returns:
0 if successful, -1 otherwise

Referenced by mntd_volume_umount(), and new_Volume().

int(* VOLUME_::set_mntpnt)(PVOLUME pv, const char *mntpnt)
 

Set device mount point.

Parameters:
pv Pointer to Volume Object
mntpnt Mount point
Returns:
0 if successful, -1 otherwise

Referenced by mntd_volume_mount(), mntd_volume_umount(), and new_Volume().

void(* VOLUME_::to_string)(PVOLUME pv)
 

Show Device Info.

Parameters:
pv Pointer to Volume Object

Referenced by new_Volume().

int(* VOLUME_::umount)(PVOLUME pv)
 

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.

Parameters:
pv Pointer to Volume Object
Returns:
0 if successful, -1 otherwise

Referenced by mntd_volume_destroy(), and new_Volume().


The documentation for this struct was generated from the following file:
Generated on Wed Mar 30 13:43:27 2005 for Mntd by  doxygen 1.3.9.1