diff options
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); |