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

MNT Tools

Tools for sending signals to mntd. It's used by mntsend and mntudev see sub items. More...


Modules

group  Supporting devfsd
 Called by devfsd, when device is added or removed. You have to do some configuration work in /etc/devfsd.conf. See Installing devfsd for more information. Once called, it will collect some data and send it via dbus to MNT daemon.
group  Supporting udevd
 Called by udevd, when device is added or removed. You have to do some configuration work in /etc/dev.d/. See Installing udev for more information. Once called, it will collect some data and send it via dbus to MNT daemon.

Functions

char * mntdbus_getenv (char *name)
 Get value from environment.
DBusConnection * mntdbus_init (void)
 Connect to MNT daemon via dbus.
void mntdbus_quit (DBusConnection *conn)
 Quit MNT daemons dbus connection.
int _mntdbus_signal (DBusConnection *conn, char *signalname, char *subsystem, char *devname)
 Send spcific device signal to MNT daemon.
int mntdbus_add (DBusConnection *conn, char *subsystem, char *devname)
 Send DeviceAdd signal to MNT daemon.
int mntdbus_remove (DBusConnection *conn, char *subsystem, char *devname)
 Send DeviceRemove signal to MNT daemon.

Detailed Description

Tools for sending signals to mntd. It's used by mntsend and mntudev see sub items.


Function Documentation

int mntdbus_add DBusConnection *  conn,
char *  subsystem,
char *  devname
 

Send DeviceAdd signal to MNT daemon.

Parameters:
conn DBUS Connection
subsystem Name of subsystem (e.g. block, tty, ...)
devname Name of device (e.g. /dev/sda5)
Returns:
0 if successful, -1 otherwise

Definition at line 211 of file mntdbus.c.

References _mntdbus_signal(), MSG_DEBUG, and MSG_ERR.

Referenced by main().

char* mntdbus_getenv char *  name  ) 
 

Get value from environment.

Parameters:
name Name of environment
Returns:
env value

Definition at line 51 of file mntdbus.c.

References MSG_ERR.

Referenced by main().

DBusConnection* mntdbus_init void   ) 
 

Connect to MNT daemon via dbus.

Returns:
Connection if successful, NULL otherwise

Definition at line 72 of file mntdbus.c.

References DBUS_SERVICE_MNT, and MSG_ERR.

Referenced by main().

void mntdbus_quit DBusConnection *  conn  ) 
 

Quit MNT daemons dbus connection.

Parameters:
conn DBUS Connection

Definition at line 122 of file mntdbus.c.

References MSG_ERR.

Referenced by main().

int mntdbus_remove DBusConnection *  conn,
char *  subsystem,
char *  devname
 

Send DeviceRemove signal to MNT daemon.

Parameters:
conn DBUS Connection
subsystem Name of subsystem (e.g. block, tty, ...)
devname Name of device (e.g. /dev/sda5)
Returns:
0 if successful, -1 otherwise

Definition at line 234 of file mntdbus.c.

References _mntdbus_signal(), MSG_DEBUG, and MSG_ERR.

Referenced by main().


Generated on Wed Mar 30 13:43:27 2005 for Mntd by  doxygen 1.3.9.1