Data Structures | |
struct | DSDeviceAsyncFindStruct_s |
search structure for async find operations More... | |
struct | HalDevice_s |
HalDevice internals; private. More... | |
struct | HalDeviceIterator_s |
Iterator for global device list; private. More... | |
struct | HalProperty_s |
HalProperty internals; private. More... | |
struct | HalPropertyIterator_s |
Iterator for properties; private. More... | |
Defines | |
#define | MAX_CB_FUNCS 32 |
Maximum number of callbacks inside the HAL daemon. | |
#define | MAX_CAP_SIZE 2048 |
Maximum string length for capabilities; quite a hack :-/. | |
Typedefs | |
typedef DSDeviceAsyncFindStruct_s | DSDeviceAsyncFindStruct |
search structure for async find operations | |
typedef HalProperty_s | HalProperty |
HalProperty internals; private. | |
typedef HalDevice_s | HalDevice |
HalDevice internals; private. | |
typedef HalPropertyIterator_s | HalPropertyIterator |
Iterator for properties; private. | |
typedef HalDeviceIterator_s | HalDeviceIterator |
Iterator for global device list; private. | |
typedef void(* | HalDevicePropertyChangedCallback )(HalDevice *device, const char *key, dbus_bool_t in_gdl, dbus_bool_t removed, dbus_bool_t added) |
Signature for callback function when a property is changed, added or removed. | |
typedef void(* | HalDeviceGDLChangedCallback )(HalDevice *device, dbus_bool_t is_added) |
Signature for callback function when a device is added or removed to the gdl. | |
typedef void(* | HalDeviceNewCapabilityCallback )(HalDevice *device, const char *capability, dbus_bool_t in_gdl) |
Signature for callback function when a device is assigned a new capability. | |
typedef void(* | DSAsyncFindDeviceCB )(HalDevice *result, void *data1, void *data2) |
Type for callback function when a device has been found. | |
Functions | |
void | async_find_property_changed (HalDevice *device, const char *key, dbus_bool_t in_gdl, dbus_bool_t removed, dbus_bool_t added) |
Called whenever a property on a device is changed. | |
void | ds_init () |
Initialize the device store. | |
void | ds_add_cb_newcap (HalDeviceNewCapabilityCallback cb) |
Add a callback when a device has got a new capability. | |
void | ds_add_cb_property_changed (HalDevicePropertyChangedCallback cb) |
Add a callback when a property of a device has changed. | |
void | ds_add_cb_gdl_changed (HalDeviceGDLChangedCallback cb) |
Add a callback when the global device list changeds. | |
void | ds_shutdown () |
Shut down the device store. | |
void | ds_print (HalDevice *device) |
Dump a textual representation of a device to stdout. | |
HalDevice * | ds_device_find (const char *udi) |
Find a device; it doesn't have to be in the global device list. | |
gboolean | async_find_timeout_fn (gpointer data) |
Callback for when an async timeout happens. | |
void | async_find_check_new_addition (HalDevice *device) |
This function is called by ds_gdl_add() when a new device is added to the global device list. | |
void | ds_device_async_find_by_key_value_string (const char *key, const char *value, dbus_bool_t only_gdl, DSAsyncFindDeviceCB callback, void *data1, void *data2, int timeout) |
Find a device by requiring a specific key to assume string value. | |
HalDevice ** | ds_device_find_multiple_by_key_value_string (const char *key, const char *value, dbus_bool_t only_gdl, int *num_results) |
Find one or more devices by requiring a specific key to assume string value. | |
HalDevice * | ds_device_find_by_key_value_string (const char *key, const char *value, dbus_bool_t only_gdl) |
Find a device by requiring a specific key to assume string value. | |
HalDevice * | ds_device_new () |
Create a new device; it will be added to the global device list and will have a randomly generated unique device id. | |
void | ds_device_destroy (HalDevice *device) |
Destroy a device; works both if the device is in the global device list or not. | |
void | ds_gdl_add (HalDevice *device) |
Add a device to the global device list. | |
unsigned int | ds_device_size () |
Get number of devices. | |
void | ds_device_iter_begin (HalDeviceIterator *iterator) |
Get an iterator pointing to the beginning of the device list. | |
dbus_bool_t | ds_device_iter_has_more (HalDeviceIterator *iterator) |
Determine if there are more devices to iterate over. | |
void | ds_device_iter_next (HalDeviceIterator *iterator) |
Advance the iterator to the next position. | |
HalDevice * | ds_device_iter_get (HalDeviceIterator *iterator) |
Get the device that this iterator represents. | |
const char * | ds_device_get_udi (HalDevice *device) |
Get device unique id. | |
dbus_bool_t | ds_device_set_udi (HalDevice *device, const char *udi) |
Set unique device id. | |
unsigned int | ds_properties_size (HalDevice *device) |
Get number of properties. | |
dbus_bool_t | ds_property_exists (HalDevice *device, const char *key) |
Determine if a property exists. | |
HalProperty * | ds_property_find (HalDevice *device, const char *key) |
Find a device property. | |
void | ds_property_iter_begin (HalDevice *device, HalPropertyIterator *iterator) |
Get an iterator pointing to the beginning of the properties of a device. | |
dbus_bool_t | ds_property_iter_has_more (HalPropertyIterator *iterator) |
Determine if there are more properties to iterate over. | |
void | ds_property_iter_next (HalPropertyIterator *iterator) |
Advance the property iterator to the next position. | |
HalProperty * | ds_property_iter_get (HalPropertyIterator *iterator) |
Get the property that this iterator represents. | |
dbus_bool_t | ds_property_set_string (HalDevice *device, const char *key, const char *value) |
Set the value of a property. | |
dbus_bool_t | ds_property_set_int (HalDevice *device, const char *key, dbus_int32_t value) |
Set the value of a property. | |
dbus_bool_t | ds_property_set_bool (HalDevice *device, const char *key, dbus_bool_t value) |
Set the value of a property. | |
dbus_bool_t | ds_property_set_double (HalDevice *device, const char *key, double value) |
Set the value of a property. | |
dbus_bool_t | ds_property_remove (HalDevice *device, const char *key) |
Remove a property. | |
const char * | ds_property_iter_get_key (HalProperty *property) |
Get the key of a property. | |
int | ds_property_iter_get_type (HalProperty *property) |
Get the type of the value of a property. | |
const char * | ds_property_iter_get_string (HalProperty *property) |
Get the value of a property. | |
dbus_int32_t | ds_property_iter_get_int (HalProperty *property) |
Get the value of a property. | |
dbus_bool_t | ds_property_iter_get_bool (HalProperty *property) |
Get the value of a property. | |
double | ds_property_iter_get_double (HalProperty *property) |
Get the value of a property. | |
void | ds_device_merge (HalDevice *target, HalDevice *source) |
Merge properties from one device to another. | |
int | ds_property_get_type (HalDevice *device, const char *key) |
Get the type of the value of a property. | |
const char * | ds_property_get_string (HalDevice *device, const char *key) |
Get the value of a property. | |
dbus_int32_t | ds_property_get_int (HalDevice *device, const char *key) |
Get the value of a property. | |
dbus_bool_t | ds_property_get_bool (HalDevice *device, const char *key) |
Get the value of a property. | |
double | ds_property_get_double (HalDevice *device, const char *key) |
Get the value of a property. | |
dbus_bool_t | ds_device_matches (HalDevice *device1, HalDevice *device2, const char *namespace) |
Check a set of properties for two devices matches. | |
void | ds_add_capability (HalDevice *device, const char *capability) |
Add a capability to a device. | |
dbus_bool_t | ds_query_capability (HalDevice *device, const char *capability) |
Query a device for a capability. | |
Variables | |
HalDevicePropertyChangedCallback | property_changed_cb [MAX_CB_FUNCS] |
property changed callback | |
HalDeviceGDLChangedCallback | gdl_changed_cb [MAX_CB_FUNCS] |
gdl changed callback | |
HalDeviceNewCapabilityCallback | new_capability_cb [MAX_CB_FUNCS] |
new capability callback | |
int | num_property_changed_cb = 0 |
property changed callback | |
int | num_gdl_changed_cb = 0 |
gdl changed callback | |
int | num_new_capability_cb = 0 |
new capability callback | |
unsigned int | device_list_num = 0 |
Number of devices. | |
unsigned int | temp_device_counter = 0 |
Counter used for generating random device names. | |
HalDevice * | device_list_head = NULL |
Head of device list. | |
DSDeviceAsyncFindStruct * | async_find_outstanding_head = NULL |
head of list of outstanding async find requests |
|
Type for callback function when a device has been found.
Definition at line 152 of file device_store.h. Referenced by async_find_check_new_addition(), async_find_timeout_fn(), and ds_device_async_find_by_key_value_string(). |
|
Signature for callback function when a device is added or removed to the gdl.
Definition at line 114 of file device_store.h. Referenced by ds_add_cb_gdl_changed(). |
|
Signature for callback function when a device is assigned a new capability.
Definition at line 124 of file device_store.h. Referenced by ds_add_cb_newcap(). |
|
Signature for callback function when a property is changed, added or removed.
Definition at line 102 of file device_store.h. Referenced by ds_add_cb_property_changed(). |
|
This function is called by ds_gdl_add() when a new device is added to the global device list. We use it to check if there is someone having an asynchronous wait out for the this device.
Definition at line 299 of file device_store.c. References async_find_outstanding_head, DSDeviceAsyncFindStruct_s::callback, DSDeviceAsyncFindStruct_s::data1, DSDeviceAsyncFindStruct_s::data2, ds_property_get_string(), ds_property_get_type(), DSAsyncFindDeviceCB, DSDeviceAsyncFindStruct, HalDevice, HalDevice_s::in_gdl, DSDeviceAsyncFindStruct_s::key, DSDeviceAsyncFindStruct_s::next, DSDeviceAsyncFindStruct_s::only_gdl, and DSDeviceAsyncFindStruct_s::value. Referenced by async_find_property_changed(), and ds_gdl_add(). |
|
Called whenever a property on a device is changed.
Definition at line 380 of file device_store.c. References async_find_check_new_addition(), and HalDevice. Referenced by ds_init(). |
|
Callback for when an async timeout happens.
Definition at line 243 of file device_store.c. References async_find_outstanding_head, DSDeviceAsyncFindStruct_s::callback, DSDeviceAsyncFindStruct_s::data1, DSDeviceAsyncFindStruct_s::data2, DSAsyncFindDeviceCB, DSDeviceAsyncFindStruct, DSDeviceAsyncFindStruct_s::key, DSDeviceAsyncFindStruct_s::next, and DSDeviceAsyncFindStruct_s::value. Referenced by ds_device_async_find_by_key_value_string(). |
|
Add a capability to a device.
Definition at line 1473 of file device_store.c. References ds_property_get_string(), ds_property_set_string(), ds_query_capability(), HalDevice, HalDevice_s::in_gdl, MAX_CAP_SIZE, new_capability_cb, and num_new_capability_cb. Referenced by ds_device_merge(), linux_class_block_check_if_ready_to_add(), pci_add_caps_from_class(), process_input_proc_info(), usb_add_caps_from_class(), visit_class_device_block(), visit_class_device_block_got_parent(), visit_class_device_i2c_adapter_got_parent(), visit_class_device_net(), and visit_class_device_v4l(). |
|
Add a callback when the global device list changeds.
Definition at line 131 of file device_store.c. References gdl_changed_cb, HalDeviceGDLChangedCallback, MAX_CB_FUNCS, and num_gdl_changed_cb. Referenced by linux_class_net_init(), and main(). |
|
Add a callback when a device has got a new capability.
Definition at line 111 of file device_store.c. References HalDeviceNewCapabilityCallback, MAX_CB_FUNCS, new_capability_cb, num_new_capability_cb, and num_property_changed_cb. Referenced by linux_class_net_init(), and main(). |
|
Add a callback when a property of a device has changed.
Definition at line 121 of file device_store.c. References HalDevicePropertyChangedCallback, MAX_CB_FUNCS, num_property_changed_cb, and property_changed_cb. Referenced by main(). |
|
Find a device by requiring a specific key to assume string value. If multiple devices meet this criteria then the result is undefined. Only devices in the GDL is searched. This is an asynchronous version of ds_device_find_by_key_value_string. The result is delivered to the specified callback function. If the device is there the callback is invoked immedieately and thus before this functions returns. The caller can specify a timeout in milliseconds on how long he is willing to wait. A value of zero means don't wait at all.
Definition at line 416 of file device_store.c. References async_find_outstanding_head, async_find_timeout_fn(), DSDeviceAsyncFindStruct_s::callback, DSDeviceAsyncFindStruct_s::data1, DSDeviceAsyncFindStruct_s::data2, ds_device_find_by_key_value_string(), DSAsyncFindDeviceCB, DSDeviceAsyncFindStruct, HalDevice, DSDeviceAsyncFindStruct_s::key, DSDeviceAsyncFindStruct_s::next, DSDeviceAsyncFindStruct_s::only_gdl, DSDeviceAsyncFindStruct_s::timeout_id, DSDeviceAsyncFindStruct_s::value, xmalloc(), and xstrdup(). Referenced by handle_udev_node_created(), process_input_proc_info(), visit_class_device_block(), visit_class_device_i2c_adapter(), visit_class_device_net(), visit_class_device_scsi_device(), visit_class_device_scsi_host(), visit_class_device_v4l(), visit_device_i2c(), visit_device_ide(), visit_device_ide_host(), visit_device_ieee1394(), visit_device_pci(), visit_device_usb(), and visit_device_usb_interface(). |
|
Destroy a device; works both if the device is in the global device list or not.
Definition at line 597 of file device_store.c. References device_list_head, device_list_num, gdl_changed_cb, HalDevice, HalProperty, HalDevice_s::in_gdl, HalProperty_s::key, HalProperty_s::next, HalDevice_s::next, num_gdl_changed_cb, HalDevice_s::prev, HalDevice_s::prop_head, HalProperty_s::str_value, HalProperty_s::type, and HalDevice_s::udi. Referenced by agent_manager_remove(), detect_media(), handle_hotplug(), input_got_sysdevice(), rename_and_merge(), visit_class_device_block_got_parent(), visit_class_device_i2c_adapter_got_parent(), visit_class_device_net_got_sysdevice(), visit_class_device_scsi_device_got_parent(), visit_class_device_scsi_host_got_parent(), visit_class_device_v4l_got_sysdevice(), and visit_device_usbif_got_parent(). |
|
|
Find a device by requiring a specific key to assume string value. If multiple devices meet this criteria then the result is undefined. Use ds_device_find_multiple_by_key_value_string() instead.
Definition at line 531 of file device_store.c. References 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, and HalDevice_s::in_gdl. Referenced by detect_media(), ds_device_async_find_by_key_value_string(), and handle_hotplug(). |
|
Find one or more devices by requiring a specific key to assume string value.
Definition at line 474 of file device_store.c. References 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, and xmalloc(). Referenced by force_unmount_of_all_childs(). |
|
Get device unique id.
Definition at line 709 of file device_store.c. References HalDevice, and HalDevice_s::udi. Referenced by agent_manager_new_device(), ds_print(), and manager_get_all_devices(). |
|
Get an iterator pointing to the beginning of the device list.
Definition at line 664 of file device_store.c. References HalDeviceIterator_s::cursor, device_list_head, HalDeviceIterator, and HalDeviceIterator_s::position. Referenced by ds_device_find_by_key_value_string(), ds_device_find_multiple_by_key_value_string(), etc_mtab_process_all_block_devices(), manager_find_device_by_capability(), manager_find_device_string_match(), manager_get_all_devices(), and media_detect_timer_handler(). |
|
Get the device that this iterator represents.
Definition at line 697 of file device_store.c. References HalDeviceIterator_s::cursor, HalDevice, and HalDeviceIterator. Referenced by ds_device_find_by_key_value_string(), ds_device_find_multiple_by_key_value_string(), etc_mtab_process_all_block_devices(), manager_find_device_by_capability(), manager_find_device_string_match(), manager_get_all_devices(), and media_detect_timer_handler(). |
|
Determine if there are more devices to iterate over.
Definition at line 675 of file device_store.c. References device_list_num, HalDeviceIterator, and HalDeviceIterator_s::position. Referenced by ds_device_find_by_key_value_string(), ds_device_find_multiple_by_key_value_string(), etc_mtab_process_all_block_devices(), manager_find_device_by_capability(), manager_find_device_string_match(), manager_get_all_devices(), and media_detect_timer_handler(). |
|
Advance the iterator to the next position.
Definition at line 686 of file device_store.c. References HalDeviceIterator_s::cursor, HalDeviceIterator, HalDevice_s::next, and HalDeviceIterator_s::position. Referenced by ds_device_find_by_key_value_string(), ds_device_find_multiple_by_key_value_string(), etc_mtab_process_all_block_devices(), manager_find_device_by_capability(), manager_find_device_string_match(), manager_get_all_devices(), and media_detect_timer_handler(). |
|
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 1407 of file device_store.c. References ds_property_exists(), ds_property_get_bool(), ds_property_get_double(), ds_property_get_int(), ds_property_get_string(), ds_property_iter_begin(), ds_property_iter_get(), ds_property_iter_get_bool(), ds_property_iter_get_double(), ds_property_iter_get_int(), ds_property_iter_get_key(), ds_property_iter_get_string(), ds_property_iter_get_type(), ds_property_iter_has_more(), ds_property_iter_next(), HalDevice, HalProperty, and HalPropertyIterator. Referenced by agent_device_matches(), and rename_and_merge(). |
|
Merge properties from one device to another. The info.capabilities property is handled in a special way; like the other properties it isn't overwritten, but rather merged. If new capabilities are introduced then new_capability_cb will be invoked for every new capability merged onto the target device.
Definition at line 1200 of file device_store.c. References ds_add_capability(), ds_property_get_string(), ds_property_get_type(), ds_property_iter_begin(), ds_property_iter_get(), ds_property_iter_get_bool(), ds_property_iter_get_double(), ds_property_iter_get_int(), ds_property_iter_get_key(), ds_property_iter_get_string(), ds_property_iter_get_type(), ds_property_iter_has_more(), ds_property_iter_next(), ds_property_remove(), ds_property_set_bool(), ds_property_set_double(), ds_property_set_int(), ds_property_set_string(), ds_query_capability(), HalDevice, HalProperty, HalPropertyIterator, property_atomic_update_begin(), and property_atomic_update_end(). Referenced by agent_merge_properties(), detect_media(), input_got_sysdevice(), rename_and_merge(), visit_class_device_net_got_sysdevice(), and visit_class_device_v4l_got_sysdevice(). |
|
Create a new device; it will be added to the global device list and will have a randomly generated unique device id. It will not be in the global device list.
Definition at line 566 of file device_store.c. References device_list_head, device_list_num, HalDevice, HalDevice_s::in_gdl, HalDevice_s::next, HalDevice_s::num_properties, HalDevice_s::prev, HalDevice_s::prop_head, temp_device_counter, HalDevice_s::udi, xmalloc(), and xstrdup(). Referenced by agent_manager_new_device(), detect_media(), process_input_proc_info(), visit_class_device_block(), visit_class_device_i2c_adapter(), visit_class_device_net(), visit_class_device_scsi_device(), visit_class_device_scsi_host(), visit_class_device_v4l(), visit_device_i2c(), visit_device_ide(), visit_device_ide_host(), visit_device_ieee1394(), visit_device_pci(), visit_device_usb(), and visit_device_usb_interface(). |
|
Set unique device id.
Definition at line 721 of file device_store.c. References ds_device_find(), HalDevice, HalDevice_s::udi, and xstrdup(). Referenced by agent_manager_commit_to_gdl(), detect_media(), and rename_and_merge(). |
|
Get number of devices.
Definition at line 655 of file device_store.c. References device_list_num. |
|
Add a device to the global device list.
Definition at line 637 of file device_store.c. References async_find_check_new_addition(), gdl_changed_cb, HalDevice, HalDevice_s::in_gdl, and num_gdl_changed_cb. Referenced by agent_manager_commit_to_gdl(), detect_media(), linux_class_block_check_if_ready_to_add(), visit_class_device_i2c_adapter_got_parent(), visit_class_device_scsi_device_got_parent(), visit_class_device_scsi_host_got_parent(), visit_device_i2c_got_parent(), visit_device_ide_got_parent(), visit_device_ide_host_got_parent(), visit_device_ieee1394_got_parent(), visit_device_pci_got_parent(), visit_device_usb_got_parent(), and visit_device_usbif_got_parent(). |
|
Dump a textual representation of a device to stdout.
Definition at line 149 of file device_store.c. References ds_device_get_udi(), ds_property_iter_begin(), ds_property_iter_get(), ds_property_iter_get_bool(), ds_property_iter_get_double(), ds_property_iter_get_int(), ds_property_iter_get_key(), ds_property_iter_get_string(), ds_property_iter_get_type(), ds_property_iter_has_more(), ds_property_iter_next(), HalDevice, HalProperty, HalPropertyIterator, and HalDevice_s::in_gdl. Referenced by rename_and_merge(). |
|
Get number of properties.
Definition at line 738 of file device_store.c. References HalDevice, and HalDevice_s::num_properties. |
|
Determine if a property exists.
Definition at line 749 of file device_store.c. References ds_property_find(), and HalDevice. Referenced by detect_media(), device_property_exists(), ds_device_matches(), find_and_set_physical_device(), force_unmount(), handle_hotplug(), linux_class_block_removed(), rename_and_merge(), usb_compute_udi(), and visit_class_device_block_got_parent(). |
|
Find a device property.
Definition at line 761 of file device_store.c. References HalDevice, HalProperty, HalProperty_s::key, HalProperty_s::next, and HalDevice_s::prop_head. Referenced by device_get_property(), device_get_property_type(), and ds_property_exists(). |
|
Get the value of a property.
Definition at line 1348 of file device_store.c. References HalProperty_s::bool_value, HalDevice, HalProperty, HalProperty_s::key, HalProperty_s::next, HalDevice_s::prop_head, and HalProperty_s::type. Referenced by detect_media(), ds_device_matches(), etc_mtab_process_all_block_devices(), force_unmount(), handle_hotplug(), handle_match(), linux_class_block_check_if_ready_to_add(), linux_class_block_removed(), rename_and_merge(), and visit_class_device_block_got_parent(). |
|
Get the value of a property.
Definition at line 1371 of file device_store.c. References HalProperty_s::double_value, HalDevice, HalProperty, HalProperty_s::key, HalProperty_s::next, HalDevice_s::prop_head, and HalProperty_s::type. Referenced by ds_device_matches(). |
|
Get the value of a property.
Definition at line 1325 of file device_store.c. References HalDevice, HalProperty, HalProperty_s::int_value, HalProperty_s::key, HalProperty_s::next, HalDevice_s::prop_head, and HalProperty_s::type. Referenced by block_compute_udi(), ds_device_matches(), etc_mtab_process_all_block_devices(), handle_match(), i2c_adapter_compute_udi(), ide_compute_udi(), ide_host_compute_udi(), pci_compute_udi(), scsi_device_compute_udi(), scsi_host_compute_udi(), usb_compute_udi(), usbif_compute_udi(), visit_device_usb(), visit_device_usb_got_parent(), and visit_device_usbif_got_parent(). |
|
Get the value of a property.
Definition at line 1302 of file device_store.c. References HalDevice, HalProperty, HalProperty_s::key, HalProperty_s::next, HalDevice_s::prop_head, HalProperty_s::str_value, and HalProperty_s::type. Referenced by async_find_check_new_addition(), detect_media(), device_add_capability(), device_query_capability(), ds_add_capability(), ds_device_find_by_key_value_string(), ds_device_find_multiple_by_key_value_string(), ds_device_matches(), ds_device_merge(), ds_query_capability(), etc_mtab_process_all_block_devices(), find_and_set_physical_device(), force_unmount(), force_unmount_of_all_childs(), handle_match(), i2c_compute_udi(), ieee1394_compute_udi(), link_detection_add(), linux_class_block_check_if_ready_to_add(), manager_find_device_by_capability(), manager_find_device_string_match(), usb_compute_udi(), usbif_compute_udi(), visit_class_device_block_got_parent(), visit_device_i2c(), and visit_device_usb_got_parent(). |
|
Get the type of the value of a property.
Definition at line 1280 of file device_store.c. References HalDevice, HalProperty, HalProperty_s::key, HalProperty_s::next, HalDevice_s::prop_head, and HalProperty_s::type. Referenced by async_find_check_new_addition(), ds_device_find_by_key_value_string(), ds_device_find_multiple_by_key_value_string(), ds_device_merge(), handle_match(), manager_find_device_by_capability(), and manager_find_device_string_match(). |
|
Get an iterator pointing to the beginning of the properties of a device.
Definition at line 782 of file device_store.c. References HalPropertyIterator_s::cursor, HalPropertyIterator_s::device, HalDevice, HalPropertyIterator, and HalDevice_s::prop_head. Referenced by device_get_all_properties(), ds_device_matches(), ds_device_merge(), and ds_print(). |
|
Get the property that this iterator represents.
Definition at line 812 of file device_store.c. References HalPropertyIterator_s::cursor, HalProperty, and HalPropertyIterator. Referenced by device_get_all_properties(), ds_device_matches(), ds_device_merge(), and ds_print(). |
|
Get the value of a property.
Definition at line 1175 of file device_store.c. References HalProperty_s::bool_value, and HalProperty. Referenced by device_get_all_properties(), device_get_property(), ds_device_matches(), ds_device_merge(), and ds_print(). |
|
Get the value of a property.
Definition at line 1185 of file device_store.c. References HalProperty_s::double_value, and HalProperty. Referenced by device_get_all_properties(), device_get_property(), ds_device_matches(), ds_device_merge(), and ds_print(). |
|
Get the value of a property.
Definition at line 1165 of file device_store.c. References HalProperty, and HalProperty_s::int_value. Referenced by device_get_all_properties(), device_get_property(), ds_device_matches(), ds_device_merge(), and ds_print(). |
|
Get the key of a property.
Definition at line 1130 of file device_store.c. References HalProperty, and HalProperty_s::key. Referenced by device_get_all_properties(), ds_device_matches(), ds_device_merge(), and ds_print(). |
|
Get the value of a property.
Definition at line 1153 of file device_store.c. References HalProperty, HalProperty_s::str_value, and HalProperty_s::type. Referenced by device_get_all_properties(), device_get_property(), ds_device_matches(), ds_device_merge(), and ds_print(). |
|
Get the type of the value of a property.
Definition at line 1141 of file device_store.c. References HalProperty, and HalProperty_s::type. Referenced by device_get_all_properties(), device_get_property(), device_get_property_type(), ds_device_matches(), ds_device_merge(), and ds_print(). |
|
Determine if there are more properties to iterate over.
Definition at line 793 of file device_store.c. References HalPropertyIterator_s::cursor, and HalPropertyIterator. Referenced by device_get_all_properties(), ds_device_matches(), ds_device_merge(), and ds_print(). |
|
Advance the property iterator to the next position.
Definition at line 802 of file device_store.c. References HalPropertyIterator_s::cursor, HalPropertyIterator, and HalProperty_s::next. Referenced by device_get_all_properties(), ds_device_matches(), ds_device_merge(), and ds_print(). |
|
Remove a property.
Definition at line 1070 of file device_store.c. References HalDevice, HalProperty, HalDevice_s::in_gdl, HalProperty_s::key, HalProperty_s::next, HalDevice_s::num_properties, num_property_changed_cb, HalProperty_s::prev, HalDevice_s::prop_head, property_changed_cb, HalProperty_s::str_value, and HalProperty_s::type. Referenced by device_remove_property(), ds_device_merge(), and handle_hotplug(). |
|
Set the value of a property.
Definition at line 950 of file device_store.c. References HalProperty_s::bool_value, HalDevice, HalProperty, HalDevice_s::in_gdl, HalProperty_s::key, HalProperty_s::next, HalDevice_s::num_properties, num_property_changed_cb, HalProperty_s::prev, HalDevice_s::prop_head, property_changed_cb, HalProperty_s::type, and xstrdup(). Referenced by detect_media(), device_set_property(), ds_device_merge(), end(), etc_mtab_process_all_block_devices(), force_unmount(), handle_hotplug(), link_detection_process(), linux_class_block_check_if_ready_to_add(), process_input_proc_info(), rename_and_merge(), visit_class_device_block(), visit_class_device_block_got_parent(), visit_class_device_i2c_adapter_got_parent(), visit_class_device_scsi_device_got_parent(), visit_class_device_scsi_host_got_parent(), visit_device_ide_got_parent(), visit_device_ide_host_got_parent(), visit_device_usb(), and visit_device_usb_interface(). |
|
Set the value of a property.
Definition at line 1011 of file device_store.c. References HalProperty_s::double_value, HalDevice, HalProperty, HalDevice_s::in_gdl, HalProperty_s::key, HalProperty_s::next, HalDevice_s::num_properties, num_property_changed_cb, HalProperty_s::prev, HalDevice_s::prop_head, property_changed_cb, HalProperty_s::type, and xstrdup(). Referenced by device_set_property(), ds_device_merge(), and end(). |
|
Set the value of a property.
Definition at line 889 of file device_store.c. References HalDevice, HalProperty, HalDevice_s::in_gdl, HalProperty_s::int_value, HalProperty_s::key, HalProperty_s::next, HalDevice_s::num_properties, num_property_changed_cb, HalProperty_s::prev, HalDevice_s::prop_head, property_changed_cb, HalProperty_s::type, and xstrdup(). Referenced by device_set_property(), ds_device_merge(), end(), link_detection_process(), linux_class_block_check_if_ready_to_add(), process_input_proc_info(), visit_class_device_block(), visit_class_device_i2c_adapter(), visit_class_device_net(), visit_class_device_scsi_device(), visit_class_device_scsi_host(), visit_class_device_v4l(), visit_device_ide(), visit_device_ide_host(), visit_device_pci(), visit_device_usb(), visit_device_usb_got_parent(), visit_device_usb_interface(), and visit_device_usbif_got_parent(). |
|
Set the value of a property.
Definition at line 825 of file device_store.c. References HalDevice, HalProperty, HalDevice_s::in_gdl, HalProperty_s::key, HalProperty_s::next, HalDevice_s::num_properties, num_property_changed_cb, HalProperty_s::prev, HalDevice_s::prop_head, property_changed_cb, HalProperty_s::str_value, HalProperty_s::type, and xstrdup(). Referenced by detect_media(), device_add_capability(), device_set_property(), ds_add_capability(), ds_device_merge(), end(), etc_mtab_process_all_block_devices(), find_and_set_physical_device(), force_unmount(), handle_udev_node_created_found_device(), linux_class_block_check_if_ready_to_add(), pci_add_caps_from_class(), process_input_proc_info(), rename_and_merge(), usb_add_caps_from_class(), visit_class_device_block(), visit_class_device_block_got_parent(), visit_class_device_i2c_adapter(), visit_class_device_i2c_adapter_got_parent(), visit_class_device_net(), visit_class_device_scsi_device(), visit_class_device_scsi_device_got_parent(), visit_class_device_scsi_host(), visit_class_device_scsi_host_got_parent(), visit_class_device_v4l(), visit_device_i2c(), visit_device_i2c_got_parent(), visit_device_ide(), visit_device_ide_got_parent(), visit_device_ide_host(), visit_device_ide_host_got_parent(), visit_device_ieee1394(), visit_device_ieee1394_got_parent(), visit_device_pci(), visit_device_pci_got_parent(), visit_device_usb(), visit_device_usb_got_parent(), visit_device_usb_interface(), and visit_device_usbif_got_parent(). |
|
Query a device for a capability.
Definition at line 1508 of file device_store.c. References ds_property_get_string(), HalDevice, and xstrdup(). Referenced by ds_add_capability(), ds_device_merge(), and gdl_changed(). |