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. |
|
Invoked when a device is added to the Global Device List. Simply prints a message on stderr.
Definition at line 81 of file mntd_hal.c. |
|
Invoked when device in the Global Device List acquires a new capability. Prints the name of the capability to stderr.
Definition at line 108 of file mntd_hal.c. |
|
Invoked when a device is removed from the Global Device List. Simply prints a message on stderr.
Definition at line 94 of file mntd_hal.c. |
|
Invoked by libhal for integration with our mainloop. We take the easy route and use link with glib for painless integrate.
Definition at line 163 of file mntd_hal.c. References dbus_connection. |
|
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.
Definition at line 136 of file mntd_hal.c. |
|
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.
Definition at line 122 of file mntd_hal.c. |
|
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.
Definition at line 150 of file mntd_hal.c. |