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

Hal Signal Handler
[MNT daemon]

Handle HAL events for MNT daemon. More...

Defines

#define DIE(expr)   do {printf("*** [DIE] %s:%s():%d : ", __FILE__, __FUNCTION__, __LINE__); printf expr; printf("\n"); exit(1); } while(0)
 Macro for terminating the program on an unrecoverable error.


Functions

void mntd_hal_device_added (const char *udi)
 Invoked when a device is added to the Global Device List.

void mntd_hal_device_removed (const char *udi)
 Invoked when a device is removed from the Global Device List.

void mntd_hal_device_new_capability (const char *udi, const char *capability)
 Invoked when device in the Global Device List acquires a new capability.

void mntd_hal_property_changed (const char *udi, const char *key)
 Invoked when a property of a device in the Global Device List is changed, and we have we have subscribed to changes for that device.

void mntd_hal_property_added (const char *udi, const char *key)
 Invoked when a property of a device in the Global Device List is added, and we have we have subscribed to changes for that device.

void mntd_hal_property_removed (const char *udi, const char *key)
 Invoked when a property of a device in the Global Device List is removed, and we have we have subscribed to changes for that device.

void mntd_hal_mainloop_integration (DBusConnection *dbus_connection)
 Invoked by libhal for integration with our mainloop.

void mntd_hal_init (void)
 Initialize the HAL library.

void mntd_hal_shutdown (void)
 Destroy the HAL library.


Detailed Description

Handle HAL events for MNT daemon.


Function Documentation

void mntd_hal_device_added const char *  udi  )  [static]
 

Invoked when a device is added to the Global Device List.

Simply prints a message on stderr.

Parameters:
udi Universal Device Id

Definition at line 81 of file mntd_hal.c.

void mntd_hal_device_new_capability const char *  udi,
const char *  capability
[static]
 

Invoked when device in the Global Device List acquires a new capability.

Prints the name of the capability to stderr.

Parameters:
udi Universal Device Id
capability Name of capability

Definition at line 108 of file mntd_hal.c.

void mntd_hal_device_removed const char *  udi  )  [static]
 

Invoked when a device is removed from the Global Device List.

Simply prints a message on stderr.

Parameters:
udi Universal Device Id

Definition at line 94 of file mntd_hal.c.

void mntd_hal_mainloop_integration DBusConnection *  dbus_connection  )  [static]
 

Invoked by libhal for integration with our mainloop.

We take the easy route and use link with glib for painless integrate.

Parameters:
dbus_connection D-BUS connection to integrate

Definition at line 163 of file mntd_hal.c.

References dbus_connection.

void mntd_hal_property_added const char *  udi,
const char *  key
[static]
 

Invoked when a property of a device in the Global Device List is added, and we have we have subscribed to changes for that device.

Parameters:
udi Univerisal Device Id
key Key of property

Definition at line 136 of file mntd_hal.c.

void mntd_hal_property_changed const char *  udi,
const char *  key
[static]
 

Invoked when a property of a device in the Global Device List is changed, and we have we have subscribed to changes for that device.

Parameters:
udi Univerisal Device Id
key Key of property

Definition at line 122 of file mntd_hal.c.

void mntd_hal_property_removed const char *  udi,
const char *  key
[static]
 

Invoked when a property of a device in the Global Device List is removed, and we have we have subscribed to changes for that device.

Parameters:
udi Univerisal Device Id
key Key of property

Definition at line 150 of file mntd_hal.c.


Generated on Thu May 27 23:27:29 2004 for Mntd by doxygen 1.3.5