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.

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.


Detailed Description

main volume structure

Definition at line 62 of file mntd_volume.h.


Field Documentation

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

Send mounted signal to processes listing to dbus.

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

int(* VOLUME_::_send_signal)(PVOLUME pv, int what)
 

Send signal to processes listing to dbus.

Parameters:
pv Pointer to Volume Object
what Type of signal, that will be send to the listening clients (One of SIGNAL_UNKNOWN | SIGNAL_MOUNTED | SIGNAL_UNMOUNTED)
Returns:
true if successful, false otherwise

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

Send unmounted signal to processes listing to dbus.

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

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

Destructor.

Parameters:
pv Pointer to Volume Object

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

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

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

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

Constructor.

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

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

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

Mount device.

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

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

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

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

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

Show Device Info.

Parameters:
pv Pointer to Volume Object

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


The documentation for this struct was generated from the following file:
Generated on Thu May 27 23:27:28 2004 for Mntd by doxygen 1.3.5