Functions | |
DBusHandlerResult | agent_manager_new_device (DBusConnection *connection, DBusMessage *message) |
Create a new device object which will be hidden from applications until the CommitToGdl() method is called. | |
DBusHandlerResult | agent_manager_commit_to_gdl (DBusConnection *connection, DBusMessage *message) |
When a hidden device have been built (using the Device interface), a HAL agent can commit it to the global device list using this method. | |
DBusHandlerResult | agent_manager_remove (DBusConnection *connection, DBusMessage *message) |
If a HAL agent determines that a device have been removed, this method can be called such that the HAL daemon can shutdown and possibly remove the device from the global device list (depending on the property Persistent). | |
DBusHandlerResult | agent_merge_properties (DBusConnection *connection, DBusMessage *message) |
Merge properties one device to another. | |
DBusHandlerResult | agent_device_matches (DBusConnection *connection, DBusMessage *message) |
Check a set of properties for two devices matches. |
|
Check a set of properties for two devices matches. Checks that all properties where keys, starting with a given value (namespace), of the first device is in the second device and that they got the same value and type. Note that the other inclusion isn't tested, so there could be properties (from the given namespace) in the second device not present in the first device.
Definition at line 1438 of file main.c. References DIE, ds_device_find(), ds_device_matches(), HalDevice, raise_no_such_device(), and raise_syntax(). Referenced by filter_function(). |
|
When a hidden device have been built (using the Device interface), a HAL agent can commit it to the global device list using this method. This means that the device object will be visible to desktop applications and the HAL daemon will possibly attempt to boot the device (depending on the property RequireEnable). The parameter given is the new unique-device-id, which should determined from bus-specific information.
Definition at line 1243 of file main.c. References DIE, ds_device_find(), ds_device_set_udi(), ds_gdl_add(), HalDevice, raise_no_such_device(), raise_syntax(), and raise_udi_in_use(). Referenced by filter_function(). |
|
Create a new device object which will be hidden from applications until the CommitToGdl() method is called. Returns an object that implements the org.freedesktop.Hal.Device interface.
Definition at line 1190 of file main.c. References DIE, ds_device_get_udi(), ds_device_new(), and HalDevice. Referenced by filter_function(). |
|
If a HAL agent determines that a device have been removed, this method can be called such that the HAL daemon can shutdown and possibly remove the device from the global device list (depending on the property Persistent).
Definition at line 1310 of file main.c. References DIE, ds_device_destroy(), ds_device_find(), HalDevice, raise_no_such_device(), and raise_syntax(). Referenced by filter_function(). |
|
Merge properties one device to another.
Definition at line 1368 of file main.c. References DIE, ds_device_find(), ds_device_merge(), HalDevice, raise_no_such_device(), and raise_syntax(). Referenced by filter_function(). |