diff options
author | David Zeuthen <david@fubar.dk> | 2004-01-13 02:01:04 +0000 |
---|---|---|
committer | David Zeuthen <david@fubar.dk> | 2004-01-13 02:01:04 +0000 |
commit | b99d81a069fd2ba3b512912d9700fde35a20983b (patch) | |
tree | 2a68242d1bddee3dbef6fa9fb08786cac68e3cba /libhal/libhal.h | |
parent | 744cd4c190f6fcb751a760ee4ae6278872f73d9d (diff) |
Bump version number to 0.2.3HAL_0_2_3
Add support for Condition signal
new function (main): add device_condition to LibHalFunctions variable
Process DeviceCondition
Add device_condition and type LibHalDeviceCondition
Emit NetLinkEvent(bool got_link) condition
emit BlockMount(string device, string mount_point, string fstype) and
BlockUnmount(string device) events
added emit_condition()
new function
Diffstat (limited to 'libhal/libhal.h')
-rw-r--r-- | libhal/libhal.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libhal/libhal.h b/libhal/libhal.h index 2f0b6d9e..98013920 100644 --- a/libhal/libhal.h +++ b/libhal/libhal.h @@ -76,6 +76,19 @@ typedef void (*LibHalDevicePropertyModified)(const char* udi, dbus_bool_t is_removed, dbus_bool_t is_added); +/** Type for callback when a non-continuos condition occurs on a device + * + * @param udi Unique Device Id + * @param condition_name Name of the condition, e.g. + * ProcessorOverheating. Consult the HAL spec + * for possible conditions + * @param message D-BUS message with variable parameters + * depending on condition + */ +typedef void (*LibHalDeviceCondition)(const char* udi, + const char* condition_name, + DBusMessage* message); + /** Big convenience chunk for all callback function pointers. * @@ -101,6 +114,9 @@ typedef struct LibHalFunctions_s /** A property of a device changed */ LibHalDevicePropertyModified device_property_modified; + /** A non-continous event on the device occured */ + LibHalDeviceCondition device_condition; + } LibHalFunctions; int hal_initialize(const LibHalFunctions* functions, dbus_bool_t use_cache); |