Data Structures | |
struct | AsyncInfo |
Functions | |
void | bus_device_got_parent (HalDeviceStore *store, HalDevice *parent, gpointer user_data) |
Callback when the parent is found or if there is no parent.. | |
dbus_bool_t | bus_device_accept (BusDeviceHandler *self, const char *path, struct sysfs_device *device, dbus_bool_t is_probing) |
Generic accept function that accepts the device if and only if the bus name from sysfs equals the bus name in the class. | |
void | bus_device_visit (BusDeviceHandler *self, const char *path, struct sysfs_device *device, dbus_bool_t is_probing) |
Visitor function for a bus device. | |
void | bus_device_detection_done (BusDeviceHandler *self) |
This function is called when all device detection on startup is done in order to perform optional batch processing on devices. | |
void | bus_device_init (BusDeviceHandler *self) |
Init function for bus type. | |
void | bus_device_shutdown (BusDeviceHandler *self) |
Shutdown function for bus type. | |
void | bus_device_tick (BusDeviceHandler *self) |
Called regulary (every two seconds) for polling / monitoring on devices of this bus type. . | |
void | bus_device_removed (BusDeviceHandler *self, const char *sysfs_path, HalDevice *d) |
Called when the class device instance have been removed. | |
void | bus_device_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 | bus_device_got_udi (BusDeviceHandler *self, HalDevice *d, const char *udi) |
|
Generic accept function that accepts the device if and only if the bus name from sysfs equals the bus name in the class.
Definition at line 72 of file bus_device.c. References BusDeviceHandler_s::sysfs_bus_name. |
|
This function is called when all device detection on startup is done in order to perform optional batch processing on devices.
Definition at line 192 of file bus_device.c. |
|
Callback when the parent is found or if there is no parent.. This is where we get added to the GDL..
Definition at line 141 of file bus_device.c. References BusDeviceHandler_s::compute_udi, DIE, BusDeviceHandler_s::got_udi, BusDeviceHandler_s::hal_bus_name, BusDeviceHandler_s::pre_process, and rename_and_merge(). Referenced by bus_device_visit(). |
|
Init function for bus type.
Definition at line 201 of file bus_device.c. |
|
This method is called just before the device is added to the GDL. This is useful for adding more information about the device.
Definition at line 252 of file bus_device.c. |
|
Called when the class device instance have been removed.
Definition at line 234 of file bus_device.c. |
|
Shutdown function for bus type.
Definition at line 210 of file bus_device.c. |
|
Called regulary (every two seconds) for polling / monitoring on devices of this bus type. .
Definition at line 221 of file bus_device.c. |
|
Visitor function for a bus device. This function parses the attributes present and creates a new HAL device based on this information.
Also set the sysfs path here, because otherwise we can't handle two identical devices per the algorithm used in a the function rename_and_merge(). The point is that we need something unique in the bus namespace Definition at line 90 of file bus_device.c. References bus_device_got_parent(), get_parent_sysfs_path(), BusDeviceHandler_s::hal_bus_name, HAL_LINUX_HOTPLUG_TIMEOUT, and is_probing. |