#include <bus_device.h>
Data Fields | |
void(* | init )(BusDeviceHandler *self) |
Called when the HAL daemon is starting up. | |
void(* | detection_done )(BusDeviceHandler *self) |
Called when all device detection (on bootstrap) is done. | |
void(* | shutdown )(BusDeviceHandler *self) |
Called just before the HAL daemon is shutting down. | |
void(* | tick )(BusDeviceHandler *self) |
Called regulary (every two seconds) for polling etc. | |
dbus_bool_t(* | accept )(BusDeviceHandler *self, const char *sysfs_path, struct sysfs_device *device, dbus_bool_t is_probing) |
Called when processing a new device instance to determine whether this class accepts this kind of device. | |
void(* | visit )(BusDeviceHandler *self, const char *sysfs_path, struct sysfs_device *device, dbus_bool_t is_probing) |
Called to process the new device instance has passed accept(). | |
void(* | removed )(BusDeviceHandler *self, const char *sysfs_path, HalDevice *d) |
Called when the class device instance have been removed. | |
char *(* | compute_udi )(HalDevice *d, int append_num) |
This function will compute the device udi based on other properties of the device. | |
void(* | pre_process )(BusDeviceHandler *self, HalDevice *d, const char *sysfs_path, struct sysfs_device *device) |
This method is called just before the device is added to the GDL. | |
void(* | got_udi )(BusDeviceHandler *self, HalDevice *d, const char *udi) |
Called when the UDI has been determined, but before the device is added to the GDL. | |
const char * | sysfs_bus_name |
name of bus the instance handles (name mentioned in /sys/bus) | |
const char * | hal_bus_name |
hal bus name - property info.bus will be set to this name |
Definition at line 36 of file bus_device.h.
|
Called when processing a new device instance to determine whether this class accepts this kind of device.
Referenced by visit_device(). |
|
This function will compute the device udi based on other properties of the device. Requirements for udi:
Referenced by bus_device_got_parent(). |
|
Called when all device detection (on bootstrap) is done.
Referenced by osspec_probe(). |
|
Called when the UDI has been determined, but before the device is added to the GDL.
Referenced by bus_device_got_parent(). |
|
Called when the HAL daemon is starting up.
Referenced by osspec_init(). |
|
This method is called just before the device is added to the GDL. This is useful for adding more information about the device.
Referenced by bus_device_got_parent(). |
|
Called when the class device instance have been removed.
|
|
Called just before the HAL daemon is shutting down.
|
|
Called regulary (every two seconds) for polling etc.
Referenced by osspec_timer_handler(). |
|
Called to process the new device instance has passed accept(). This function should create a HalDevice object - the following properties need to be set linux.sysfs_path - must be set to the fully qualified path to the sysfs object (e.g. /sys/devices/..)
Referenced by visit_device(). |