Data Structures | |
| struct | LibHalPropertySet_s |
| Represents a set of properties. More... | |
| struct | LibHalProperty_s |
| Device property class. More... | |
| struct | LibHalContext_s |
| Context for connection to the HAL daemon. More... | |
| struct | LibHalFunctions_s |
| Big convenience chunk for all callback function pointers. More... | |
| struct | LibHalPropertySetIterator_s |
| Iterator for inspecting all properties. More... | |
Typedefs | |
| typedef void(*) | LibHalIntegrateDBusIntoMainLoop (LibHalContext *ctx, DBusConnection *dbus_connection) |
| Type for function in application code that integrates a DBusConnection object into it's own mainloop. | |
| typedef void(*) | LibHalDeviceAdded (LibHalContext *ctx, const char *udi) |
| Type for callback when a device is added. | |
| typedef void(*) | LibHalDeviceRemoved (LibHalContext *ctx, const char *udi) |
| Type for callback when a device is removed. | |
| typedef void(*) | LibHalNewCapability (LibHalContext *ctx, const char *udi, const char *capability) |
| Type for callback when a device got a new capability. | |
| typedef void(*) | LibHalLostCapability (LibHalContext *ctx, const char *udi, const char *capability) |
| Type for callback when a device lost a capability. | |
| typedef void(*) | LibHalDevicePropertyModified (LibHalContext *ctx, const char *udi, const char *key, dbus_bool_t is_removed, dbus_bool_t is_added) |
| Type for callback when a property of a device changes. | |
| typedef void(*) | LibHalDeviceCondition (LibHalContext *ctx, const char *udi, const char *condition_name, DBusMessage *message) |
| Type for callback when a non-continuos condition occurs on a device. | |
| typedef LibHalFunctions_s | LibHalFunctions |
| Big convenience chunk for all callback function pointers. | |
Functions | |
| void | hal_free_string_array (char **str_array) |
| Frees a NULL-terminated array of strings. | |
| void | hal_free_string (char *str) |
| Frees a nul-terminated string. | |
| void | hal_ctx_set_user_data (LibHalContext *ctx, void *user_data) |
| Set user data for the context. | |
| void * | hal_ctx_get_user_data (LibHalContext *ctx) |
| Get user data for the context. | |
| LibHalPropertySet * | hal_device_get_all_properties (LibHalContext *ctx, const char *udi) |
| Retrieve all the properties on a device. | |
| void | hal_free_property_set (LibHalPropertySet *set) |
| Free a property set earlier obtained with hal_device_get_all_properties(). | |
| void | hal_psi_init (LibHalPropertySetIterator *iter, LibHalPropertySet *set) |
| Initialize a property set iterator. | |
| dbus_bool_t | hal_psi_has_more (LibHalPropertySetIterator *iter) |
| Determine whether there are more properties to iterate over. | |
| void | hal_psi_next (LibHalPropertySetIterator *iter) |
| Advance iterator to next property. | |
| int | hal_psi_get_type (LibHalPropertySetIterator *iter) |
| Get type of property. | |
| char * | hal_psi_get_key (LibHalPropertySetIterator *iter) |
| Get the key of a property. | |
| char * | hal_psi_get_string (LibHalPropertySetIterator *iter) |
| Get the value of a property of type string. | |
| dbus_int32_t | hal_psi_get_int (LibHalPropertySetIterator *iter) |
| Get the value of a property of type integer. | |
| dbus_uint64_t | hal_psi_get_uint64 (LibHalPropertySetIterator *iter) |
| Get the value of a property of type integer. | |
| double | hal_psi_get_double (LibHalPropertySetIterator *iter) |
| Get the value of a property of type double. | |
| dbus_bool_t | hal_psi_get_bool (LibHalPropertySetIterator *iter) |
| Get the value of a property of type bool. | |
| LibHalContext * | hal_initialize (const LibHalFunctions *cb_functions, dbus_bool_t use_cache) |
| Initialize the HAL library. | |
| int | hal_shutdown (LibHalContext *ctx) |
| Shutdown the HAL library. | |
| char ** | hal_get_all_devices (LibHalContext *ctx, int *num_devices) |
| Get all devices in the Global Device List (GDL). | |
| int | hal_device_get_property_type (LibHalContext *ctx, const char *udi, const char *key) |
| Query a property type of a device. | |
| char * | hal_device_get_property_string (LibHalContext *ctx, const char *udi, const char *key) |
| Get the value of a property of type string. | |
| dbus_int32_t | hal_device_get_property_int (LibHalContext *ctx, const char *udi, const char *key) |
| Get the value of a property of type integer. | |
| dbus_uint64_t | hal_device_get_property_uint64 (LibHalContext *ctx, const char *udi, const char *key) |
| Get the value of a property of type integer. | |
| double | hal_device_get_property_double (LibHalContext *ctx, const char *udi, const char *key) |
| Get the value of a property of type double. | |
| dbus_bool_t | hal_device_get_property_bool (LibHalContext *ctx, const char *udi, const char *key) |
| Get the value of a property of type bool. | |
| static int | hal_device_set_property_helper (LibHalContext *ctx, const char *udi, const char *key, int type, const char *str_value, dbus_int32_t int_value, dbus_uint64_t uint64_value, double double_value, dbus_bool_t bool_value) |
| dbus_bool_t | hal_device_set_property_string (LibHalContext *ctx, const char *udi, const char *key, const char *value) |
| Set a property of type string. | |
| dbus_bool_t | hal_device_set_property_int (LibHalContext *ctx, const char *udi, const char *key, dbus_int32_t value) |
| Set a property of type integer. | |
| dbus_bool_t | hal_device_set_property_uint64 (LibHalContext *ctx, const char *udi, const char *key, dbus_uint64_t value) |
| Set a property of type integer. | |
| dbus_bool_t | hal_device_set_property_double (LibHalContext *ctx, const char *udi, const char *key, double value) |
| Set a property of type double. | |
| dbus_bool_t | hal_device_set_property_bool (LibHalContext *ctx, const char *udi, const char *key, dbus_bool_t value) |
| Set a property of type bool. | |
| dbus_bool_t | hal_device_remove_property (LibHalContext *ctx, const char *udi, const char *key) |
| Remove a property. | |
| dbus_bool_t | hal_device_lock (LibHalContext *ctx, const char *udi, const char *reason_to_lock, char **reason_why_locked) |
| Take an advisory lock on the device. | |
| dbus_bool_t | hal_device_unlock (LibHalContext *ctx, const char *udi) |
| Release an advisory lock on the device. | |
| char * | hal_agent_new_device (LibHalContext *ctx) |
| Create a new device object which will be hidden from applications until the CommitToGdl(), ie. | |
| dbus_bool_t | hal_agent_commit_to_gdl (LibHalContext *ctx, const char *temp_udi, const char *udi) |
| When a hidden device have been built using the NewDevice method, ie. | |
| dbus_bool_t | hal_agent_remove_device (LibHalContext *ctx, const char *udi) |
| This method can be invoked when a device is removed. | |
| dbus_bool_t | hal_device_exists (LibHalContext *ctx, const char *udi) |
| Determine if a device exists. | |
| dbus_bool_t | hal_device_property_exists (LibHalContext *ctx, const char *udi, const char *key) |
| Determine if a property on a device exists. | |
| dbus_bool_t | hal_agent_merge_properties (LibHalContext *ctx, const char *target_udi, const char *source_udi) |
| Merge properties from one device to another. | |
| dbus_bool_t | hal_agent_device_matches (LibHalContext *ctx, const char *udi1, const char *udi2, const char *property_namespace) |
| Check a set of properties for two devices matches. | |
| void | hal_device_print (LibHalContext *ctx, const char *udi) |
| Print a device to stdout; useful for debugging. | |
| char ** | hal_manager_find_device_string_match (LibHalContext *ctx, const char *key, const char *value, int *num_devices) |
| Find a device in the GDL where a single string property matches a given value. | |
| dbus_bool_t | hal_device_add_capability (LibHalContext *ctx, const char *udi, const char *capability) |
| Assign a capability to a device. | |
| dbus_bool_t | hal_device_query_capability (LibHalContext *ctx, const char *udi, const char *capability) |
| Check if a device got a capability. | |
| char ** | hal_find_device_by_capability (LibHalContext *ctx, const char *capability, int *num_devices) |
| Find devices with a given capability. | |
| int | hal_device_property_watch_all (LibHalContext *ctx) |
| Watch all devices, ie. | |
| int | hal_device_add_property_watch (LibHalContext *ctx, const char *udi) |
| Add a watch on a device, so the device_property_changed callback is invoked when the properties on the given device changes. | |
| int | hal_device_remove_property_watch (LibHalContext *ctx, const char *udi) |
| Remove a watch on a device. | |
Variables | |
| static dbus_bool_t | hal_already_initialized_once = FALSE |
| typedef void(*) LibHalDeviceAdded(LibHalContext *ctx, const char *udi) |
| typedef void(*) LibHalDeviceCondition(LibHalContext *ctx, const char *udi, const char *condition_name, DBusMessage *message) |
Type for callback when a non-continuos condition occurs on a device.
| udi | Unique Device Id | |
| condition_name | Name of the condition, e.g. ProcessorOverheating. Consult the HAL spec for possible conditions | |
| message | D-BUS message with variable parameters depending on condition |
| typedef void(*) LibHalDevicePropertyModified(LibHalContext *ctx, const char *udi, const char *key, dbus_bool_t is_removed, dbus_bool_t is_added) |
| typedef void(*) LibHalDeviceRemoved(LibHalContext *ctx, const char *udi) |
| typedef struct LibHalFunctions_s LibHalFunctions |
Big convenience chunk for all callback function pointers.
Every function pointer can be set to NULL to indicate that the callback is not requested.
| typedef void(*) LibHalIntegrateDBusIntoMainLoop(LibHalContext *ctx, DBusConnection *dbus_connection) |
| typedef void(*) LibHalLostCapability(LibHalContext *ctx, const char *udi, const char *capability) |
| typedef void(*) LibHalNewCapability(LibHalContext *ctx, const char *udi, const char *capability) |
| dbus_bool_t hal_agent_commit_to_gdl | ( | LibHalContext * | ctx, | |
| const char * | temp_udi, | |||
| const char * | udi | |||
| ) |
When a hidden device have been built using the NewDevice method, ie.
hal_agent_new_device(), and the org.freedesktop.Hal.Device interface this function will commit it to the global device list.
This means that the device object will be visible to applications and the HAL daemon will possibly attempt to boot the device (depending on the property RequireEnable).
Note that the program invoking this method needs to run with super user privileges.
| ctx | The context for the connection to hald | |
| temp_udi | The tempoary unique device id as returned by hal_agent_new_device() | |
| udi | The new unique device id. |
| dbus_bool_t hal_agent_device_matches | ( | LibHalContext * | ctx, | |
| const char * | udi1, | |||
| const char * | udi2, | |||
| const char * | property_namespace | |||
| ) |
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.
| ctx | The context for the connection to hald | |
| udi1 | Unique Device Id for device 1 | |
| udi2 | Unique Device Id for device 2 | |
| property_namespace | Namespace for set of devices, e.g. "usb" |
| dbus_bool_t hal_agent_merge_properties | ( | LibHalContext * | ctx, | |
| const char * | target_udi, | |||
| const char * | source_udi | |||
| ) |
| char * hal_agent_new_device | ( | LibHalContext * | ctx | ) |
Create a new device object which will be hidden from applications until the CommitToGdl(), ie.
hal_agent_commit_to_gdl(), method is called.
Note that the program invoking this method needs to run with super user privileges.
| ctx | The context for the connection to hald |
| dbus_bool_t hal_agent_remove_device | ( | LibHalContext * | ctx, | |
| const char * | udi | |||
| ) |
This method can be invoked when a device is removed.
The HAL daemon will shut down the device. Note that the device may still be in the device list if the Persistent property is set to true.
Note that the program invoking this method needs to run with super user privileges.
| ctx | The context for the connection to hald | |
| udi | The new unique device id. |
| void * hal_ctx_get_user_data | ( | LibHalContext * | ctx | ) |
| void hal_ctx_set_user_data | ( | LibHalContext * | ctx, | |
| void * | user_data | |||
| ) |
| dbus_bool_t hal_device_add_capability | ( | LibHalContext * | ctx, | |
| const char * | udi, | |||
| const char * | capability | |||
| ) |
| int hal_device_add_property_watch | ( | LibHalContext * | ctx, | |
| const char * | udi | |||
| ) |
Add a watch on a device, so the device_property_changed callback is invoked when the properties on the given device changes.
The application itself is responsible for deleting the watch, using hal_device_remove_property_watch, if the device is removed.
| ctx | The context for the connection to hald | |
| udi | Unique Device Id |
| dbus_bool_t hal_device_exists | ( | LibHalContext * | ctx, | |
| const char * | udi | |||
| ) |
| LibHalPropertySet * hal_device_get_all_properties | ( | LibHalContext * | ctx, | |
| const char * | udi | |||
| ) |
Retrieve all the properties on a device.
| ctx | The context for the connection to hald | |
| udi | Unique id of device |
Definition at line 164 of file libhal.c.
Referenced by hal_device_print(), hal_drive_from_udi(), hal_volume_from_udi(), and mopts_collect().
| dbus_bool_t hal_device_get_property_bool | ( | LibHalContext * | ctx, | |
| const char * | udi, | |||
| const char * | key | |||
| ) |
Get the value of a property of type bool.
| ctx | The context for the connection to hald | |
| udi | Unique Device Id | |
| key | Name of the property |
Definition at line 1178 of file libhal.c.
Referenced by hal_drive_policy_default_use_managed_keyword().
| double hal_device_get_property_double | ( | LibHalContext * | ctx, | |
| const char * | udi, | |||
| const char * | key | |||
| ) |
| dbus_int32_t hal_device_get_property_int | ( | LibHalContext * | ctx, | |
| const char * | udi, | |||
| const char * | key | |||
| ) |
| char * hal_device_get_property_string | ( | LibHalContext * | ctx, | |
| const char * | udi, | |||
| const char * | key | |||
| ) |
Get the value of a property of type string.
| ctx | The context for the connection to hald | |
| udi | Unique Device Id | |
| key | Name of the property |
Definition at line 883 of file libhal.c.
Referenced by hal_device_query_capability(), hal_drive_from_device_file(), hal_drive_from_udi(), hal_drive_policy_default_get_managed_keyword_primary(), hal_drive_policy_default_get_managed_keyword_secondary(), and hal_drive_policy_default_get_mount_root().
| int hal_device_get_property_type | ( | LibHalContext * | ctx, | |
| const char * | udi, | |||
| const char * | key | |||
| ) |
Query a property type of a device.
| ctx | The context for the connection to hald | |
| udi | Unique Device Id | |
| key | Name of the property |
| dbus_uint64_t hal_device_get_property_uint64 | ( | LibHalContext * | ctx, | |
| const char * | udi, | |||
| const char * | key | |||
| ) |
| dbus_bool_t hal_device_lock | ( | LibHalContext * | ctx, | |
| const char * | udi, | |||
| const char * | reason_to_lock, | |||
| char ** | reason_why_locked | |||
| ) |
Take an advisory lock on the device.
| ctx | The context for the connection to hald | |
| udi | Unique Device Id | |
| reason_to_lock | A user-presentable reason why the device is locked.l | |
| reason_why_locked | A pointer to store the reason why the device cannot be locked on failure, or NULL |
| void hal_device_print | ( | LibHalContext * | ctx, | |
| const char * | udi | |||
| ) |
Print a device to stdout; useful for debugging.
| ctx | The context for the connection to hald | |
| udi | Unique Device Id |
Definition at line 2034 of file libhal.c.
References hal_device_get_all_properties(), hal_free_property_set(), hal_psi_get_bool(), hal_psi_get_double(), hal_psi_get_int(), hal_psi_get_key(), hal_psi_get_string(), hal_psi_get_type(), hal_psi_get_uint64(), hal_psi_has_more(), hal_psi_init(), and hal_psi_next().
| dbus_bool_t hal_device_property_exists | ( | LibHalContext * | ctx, | |
| const char * | udi, | |||
| const char * | key | |||
| ) |
| int hal_device_property_watch_all | ( | LibHalContext * | ctx | ) |
| dbus_bool_t hal_device_query_capability | ( | LibHalContext * | ctx, | |
| const char * | udi, | |||
| const char * | capability | |||
| ) |
Check if a device got a capability.
The result is undefined if the device doesn't exist.
| ctx | The context for the connection to hald | |
| udi | Unique Device Id | |
| capability | Capability name |
Definition at line 2230 of file libhal.c.
References hal_device_get_property_string(), and hal_free_string().
Referenced by hal_drive_from_device_file(), hal_drive_from_udi(), hal_volume_from_device_file(), and hal_volume_from_udi().
| dbus_bool_t hal_device_remove_property | ( | LibHalContext * | ctx, | |
| const char * | udi, | |||
| const char * | key | |||
| ) |
Remove a property.
| ctx | The context for the connection to hald | |
| udi | Unique Device Id | |
| key | Name of the property |
Definition at line 1443 of file libhal.c.
References hal_device_set_property_helper().
| int hal_device_remove_property_watch | ( | LibHalContext * | ctx, | |
| const char * | udi | |||
| ) |
| dbus_bool_t hal_device_set_property_bool | ( | LibHalContext * | ctx, | |
| const char * | udi, | |||
| const char * | key, | |||
| dbus_bool_t | value | |||
| ) |
Set a property of type bool.
| ctx | The context for the connection to hald | |
| udi | Unique Device Id | |
| key | Name of the property | |
| value | Value of the property |
Definition at line 1425 of file libhal.c.
References hal_device_set_property_helper().
| dbus_bool_t hal_device_set_property_double | ( | LibHalContext * | ctx, | |
| const char * | udi, | |||
| const char * | key, | |||
| double | value | |||
| ) |
Set a property of type double.
| ctx | The context for the connection to hald | |
| udi | Unique Device Id | |
| key | Name of the property | |
| value | Value of the property |
Definition at line 1406 of file libhal.c.
References hal_device_set_property_helper().
| static int hal_device_set_property_helper | ( | LibHalContext * | ctx, | |
| const char * | udi, | |||
| const char * | key, | |||
| int | type, | |||
| const char * | str_value, | |||
| dbus_int32_t | int_value, | |||
| dbus_uint64_t | uint64_value, | |||
| double | double_value, | |||
| dbus_bool_t | bool_value | |||
| ) | [static] |
Definition at line 1244 of file libhal.c.
Referenced by hal_device_remove_property(), hal_device_set_property_bool(), hal_device_set_property_double(), hal_device_set_property_int(), hal_device_set_property_string(), and hal_device_set_property_uint64().
| dbus_bool_t hal_device_set_property_int | ( | LibHalContext * | ctx, | |
| const char * | udi, | |||
| const char * | key, | |||
| dbus_int32_t | value | |||
| ) |
Set a property of type integer.
| ctx | The context for the connection to hald | |
| udi | Unique Device Id | |
| key | Name of the property | |
| value | Value of the property |
Definition at line 1368 of file libhal.c.
References hal_device_set_property_helper().
| dbus_bool_t hal_device_set_property_string | ( | LibHalContext * | ctx, | |
| const char * | udi, | |||
| const char * | key, | |||
| const char * | value | |||
| ) |
Set a property of type string.
| ctx | The context for the connection to hald | |
| udi | Unique Device Id | |
| key | Name of the property | |
| value | Value of the property; a UTF8 string |
Definition at line 1348 of file libhal.c.
References hal_device_set_property_helper().
| dbus_bool_t hal_device_set_property_uint64 | ( | LibHalContext * | ctx, | |
| const char * | udi, | |||
| const char * | key, | |||
| dbus_uint64_t | value | |||
| ) |
Set a property of type integer.
| ctx | The context for the connection to hald | |
| udi | Unique Device Id | |
| key | Name of the property | |
| value | Value of the property |
Definition at line 1387 of file libhal.c.
References hal_device_set_property_helper().
| dbus_bool_t hal_device_unlock | ( | LibHalContext * | ctx, | |
| const char * | udi | |||
| ) |
| char ** hal_find_device_by_capability | ( | LibHalContext * | ctx, | |
| const char * | capability, | |||
| int * | num_devices | |||
| ) |
Find devices with a given capability.
| ctx | The context for the connection to hald | |
| capability | Capability name | |
| num_devices | Pointer to store number of devices |
| void hal_free_property_set | ( | LibHalPropertySet * | set | ) |
Free a property set earlier obtained with hal_device_get_all_properties().
| set | Property-set to free |
Definition at line 311 of file libhal.c.
Referenced by hal_device_print(), hal_drive_from_udi(), hal_volume_from_udi(), and mopts_collect().
| void hal_free_string | ( | char * | str | ) |
Frees a nul-terminated string.
| str | The nul-terminated sting to free |
Definition at line 86 of file libhal.c.
Referenced by hal_device_query_capability(), hal_drive_free(), hal_drive_from_device_file(), hal_drive_from_udi(), hal_volume_free(), and hal_volume_from_udi().
| void hal_free_string_array | ( | char ** | str_array | ) |
Frees a NULL-terminated array of strings.
If passed NULL, does nothing.
| str_array | The array to be freed |
Definition at line 69 of file libhal.c.
Referenced by hal_drive_find_all_volumes(), hal_drive_from_device_file(), and hal_volume_from_device_file().
| char ** hal_get_all_devices | ( | LibHalContext * | ctx, | |
| int * | num_devices | |||
| ) |
Get all devices in the Global Device List (GDL).
| ctx | The context for the connection to hald | |
| num_devices | The number of devices will be stored here |
| LibHalContext * hal_initialize | ( | const LibHalFunctions * | cb_functions, | |
| dbus_bool_t | use_cache | |||
| ) |
Initialize the HAL library.
| cb_functions | Callback functions. If this is set top NULL then the library will not listen for notifications. | |
| use_cache | Retrieve all device information and cache it. This is expensive both in terms of memory (there may be 50 device objects with 20 properties each) and in terms of processing power (your process will be woken up every time a property is changed). Use with caution. NOTE NOTE NOTE: Caching isn't actually implemented yet, this is just a placeholder to preserve API compatibility. |
| char ** hal_manager_find_device_string_match | ( | LibHalContext * | ctx, | |
| const char * | key, | |||
| const char * | value, | |||
| int * | num_devices | |||
| ) |
Find a device in the GDL where a single string property matches a given value.
| ctx | The context for the connection to hald | |
| key | Name of the property | |
| value | Value to match | |
| num_devices | Pointer to store number of devices |
Definition at line 2092 of file libhal.c.
Referenced by hal_drive_find_all_volumes(), hal_drive_from_device_file(), and hal_volume_from_device_file().
| dbus_bool_t hal_psi_get_bool | ( | LibHalPropertySetIterator * | iter | ) |
Get the value of a property of type bool.
| iter | Iterator object |
Definition at line 443 of file libhal.c.
Referenced by hal_device_print(), and mopts_collect().
| double hal_psi_get_double | ( | LibHalPropertySetIterator * | iter | ) |
Get the value of a property of type double.
| iter | Iterator object |
Definition at line 432 of file libhal.c.
Referenced by hal_device_print().
| dbus_int32_t hal_psi_get_int | ( | LibHalPropertySetIterator * | iter | ) |
Get the value of a property of type integer.
| iter | Iterator object |
Definition at line 410 of file libhal.c.
Referenced by hal_device_print().
| char * hal_psi_get_key | ( | LibHalPropertySetIterator * | iter | ) |
Get the key of a property.
| iter | Iterator object |
Definition at line 385 of file libhal.c.
Referenced by hal_device_print(), hal_drive_from_udi(), hal_volume_from_udi(), and mopts_collect().
| char * hal_psi_get_string | ( | LibHalPropertySetIterator * | iter | ) |
Get the value of a property of type string.
| iter | Iterator object |
Definition at line 399 of file libhal.c.
Referenced by hal_device_print().
| int hal_psi_get_type | ( | LibHalPropertySetIterator * | iter | ) |
Get type of property.
| iter | Iterator object |
Definition at line 371 of file libhal.c.
Referenced by hal_device_print(), hal_drive_from_udi(), hal_volume_from_udi(), and mopts_collect().
| dbus_uint64_t hal_psi_get_uint64 | ( | LibHalPropertySetIterator * | iter | ) |
Get the value of a property of type integer.
| iter | Iterator object |
Definition at line 421 of file libhal.c.
Referenced by hal_device_print().
| dbus_bool_t hal_psi_has_more | ( | LibHalPropertySetIterator * | iter | ) |
Determine whether there are more properties to iterate over.
| iter | Iterator object |
Definition at line 348 of file libhal.c.
Referenced by hal_device_print(), hal_drive_from_udi(), hal_volume_from_udi(), and mopts_collect().
| void hal_psi_init | ( | LibHalPropertySetIterator * | iter, | |
| LibHalPropertySet * | set | |||
| ) |
Initialize a property set iterator.
| iter | Iterator object | |
| set | Property set |
Definition at line 335 of file libhal.c.
Referenced by hal_device_print(), hal_drive_from_udi(), hal_volume_from_udi(), and mopts_collect().
| void hal_psi_next | ( | LibHalPropertySetIterator * | iter | ) |
Advance iterator to next property.
| iter | Iterator object |
Definition at line 358 of file libhal.c.
Referenced by hal_device_print(), hal_drive_from_udi(), hal_volume_from_udi(), and mopts_collect().
| int hal_shutdown | ( | LibHalContext * | ctx | ) |
1.5.1