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

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

D-BUS interface for querying device objects. More...

Functions

DBusHandlerResult manager_get_all_devices (DBusConnection *connection, DBusMessage *message)
 Get all devices.

DBusHandlerResult manager_find_device_string_match (DBusConnection *connection, DBusMessage *message)
 Find devices in the GDL where a single string property matches a given value.

DBusHandlerResult manager_find_device_by_capability (DBusConnection *connection, DBusMessage *message)
 Find devices in the GDL with a given capability.

DBusHandlerResult manager_device_exists (DBusConnection *connection, DBusMessage *message)
 Determine if a device exists.

void manager_send_signal_device_added (const char *udi)
 Send signal DeviceAdded(string udi) on the org.freedesktop.Hal.Manager interface on the object /org/freedesktop/Hal/Manager.

void manager_send_signal_device_removed (const char *udi)
 Send signal DeviceRemoved(string udi) on the org.freedesktop.Hal.Manager interface on the object /org/freedesktop/Hal/Manager.

void manager_send_signal_new_capability (const char *udi, const char *capability)
 Send signal NewCapability(string udi, string capability) on the org.freedesktop.Hal.Manager interface on the object /org/freedesktop/Hal/Manager.


Detailed Description

D-BUS interface for querying device objects.


Function Documentation

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

Determine if a device exists.

bool Manager.DeviceExists(string udi)

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

Definition at line 416 of file main.c.

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

Referenced by filter_function().

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

Find devices in the GDL with a given capability.

array{object_reference} Manager.FindDeviceByCapability(string capability)

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

Definition at line 348 of file main.c.

References DIE, ds_device_iter_begin(), ds_device_iter_get(), ds_device_iter_has_more(), ds_device_iter_next(), ds_property_get_string(), ds_property_get_type(), HalDevice, HalDeviceIterator, HalDevice_s::in_gdl, raise_syntax(), and HalDevice_s::udi.

Referenced by filter_function().

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

Find devices in the GDL where a single string property matches a given value.

array{object_reference} Manager.FindDeviceStringMatch(string key, string value)

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

Definition at line 277 of file main.c.

References DIE, ds_device_iter_begin(), ds_device_iter_get(), ds_device_iter_has_more(), ds_device_iter_next(), ds_property_get_string(), ds_property_get_type(), HalDevice, HalDeviceIterator, HalDevice_s::in_gdl, raise_syntax(), and HalDevice_s::udi.

Referenced by filter_function().

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

Get all devices.

array{object_reference} Manager.GetAllDevices()

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

Definition at line 224 of file main.c.

References DIE, ds_device_get_udi(), ds_device_iter_begin(), ds_device_iter_get(), ds_device_iter_has_more(), ds_device_iter_next(), HalDevice, HalDeviceIterator, and HalDevice_s::in_gdl.

Referenced by filter_function().

void manager_send_signal_device_added const char *  udi  )  [static]
 

Send signal DeviceAdded(string udi) on the org.freedesktop.Hal.Manager interface on the object /org/freedesktop/Hal/Manager.

Parameters:
udi Unique Device Id

Definition at line 457 of file main.c.

References DIE.

Referenced by gdl_changed().

void manager_send_signal_device_removed const char *  udi  )  [static]
 

Send signal DeviceRemoved(string udi) on the org.freedesktop.Hal.Manager interface on the object /org/freedesktop/Hal/Manager.

Parameters:
udi Unique Device Id

Definition at line 482 of file main.c.

References DIE.

Referenced by gdl_changed().

void manager_send_signal_new_capability const char *  udi,
const char *  capability
[static]
 

Send signal NewCapability(string udi, string capability) on the org.freedesktop.Hal.Manager interface on the object /org/freedesktop/Hal/Manager.

Parameters:
udi Unique Device Id
capability Capability

Definition at line 509 of file main.c.

References DIE.

Referenced by device_add_capability(), and new_capability().


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