Main Page | Modules | Data Structures | File List | Data Fields | Related Pages

D-BUS interface org.freedesktop.Hal.AgentManager
[HAL daemon]

D-BUS interface for creating/destroying device objects. More...

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.


Detailed Description

D-BUS interface for creating/destroying device objects.


Function Documentation

DBusHandlerResult agent_device_matches DBusConnection *  connection,
DBusMessage *  message
[static]
 

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.

void AgentManager.DeviceMatches(object_reference device1, object_reference device, string namespace)

raises org.freedesktop.Hal.NoSuchDevice

Parameters:
connection D-BUS connection
message Message
Returns:
What to do with the message

Definition at line 1447 of file main.c.

References DIE, ds_device_find(), ds_device_matches(), HalDevice, raise_no_such_device(), and raise_syntax().

Referenced by filter_function().

DBusHandlerResult agent_manager_commit_to_gdl DBusConnection *  connection,
DBusMessage *  message
[static]
 

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.

void AgentManager.CommitToGdl(object_reference device, string new_object_name)

raises org.freedesktop.Hal.NoSuchDevice raises org.freedesktop.Hal.UdiInUse

Parameters:
connection D-BUS connection
message Message
Returns:
What to do with the message

Definition at line 1244 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().

DBusHandlerResult agent_manager_new_device DBusConnection *  connection,
DBusMessage *  message
[static]
 

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.

object_reference AgentManager.NewDevice()

Parameters:
connection D-BUS connection
message Message
Returns:
What to do with the message

Definition at line 1192 of file main.c.

References DIE, ds_device_get_udi(), ds_device_new(), and HalDevice.

Referenced by filter_function().

DBusHandlerResult agent_manager_remove DBusConnection *  connection,
DBusMessage *  message
[static]
 

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).

void AgentManager.Remove(object_reference device, string new_object_name)

raises org.freedesktop.Hal.NoSuchDevice

Parameters:
connection D-BUS connection
message Message
Returns:
What to do with the message

Definition at line 1314 of file main.c.

References DIE, ds_device_destroy(), ds_device_find(), HalDevice, raise_no_such_device(), and raise_syntax().

Referenced by filter_function().

DBusHandlerResult agent_merge_properties DBusConnection *  connection,
DBusMessage *  message
[static]
 

Merge properties one device to another.

void AgentManager.MergeProperties(object_reference target, object_reference source)

raises org.freedesktop.Hal.NoSuchDevice

Parameters:
connection D-BUS connection
message Message
Returns:
What to do with the message

Definition at line 1374 of file main.c.

References DIE, ds_device_find(), ds_device_merge(), HalDevice, raise_no_such_device(), and raise_syntax().

Referenced by filter_function().


Generated on Sat Feb 7 22:11:50 2004 for HAL by doxygen 1.3.5