Functions | |
void | discover_xml_merge_device_url (discover_device_t **dlist, char *url, discover_xml_busclass_t *busclasses, discover_xml_vendor_t *vendors, discover_error_t *status) |
discover_device_t * | discover_xml_get_devices (discover_bus_t bus, discover_error_t *status) |
void | discover_xml_free_devices (void) |
discover_device_t * | discover_xml_find_device (discover_device_t *xml_devices, char *target_vendor, char *target_model, discover_error_t *status) |
discover_device_t * | discover_xml_find_next_device (discover_device_t *xml_devices, char *target_vendor, char *target_model, discover_error_t *status) |
discover_device_t * | discover_xml_get_matching_devices (discover_device_t *xml_devices, char *target_vendor, char *target_model, discover_error_t *status) |
|
Find the first device in xml_devices matching target_vendor and/or target_model. (One or both can be specified, but not zero.)
Definition at line 542 of file device-xml.c. References discover_device_t, and discover_error_t. Referenced by discover_xml_find_next_device(), and discover_xml_get_matching_devices(). |
|
Find the next device in xml_devices matching target_vendor and/or target_model. (One or both can be specified, but not zero.) The first device in the list is assumed to have been processed, so we simply call discover_xml_find_device() on the next pointer.
Definition at line 586 of file device-xml.c. References discover_device_t, discover_error_t, and discover_xml_find_device(). Referenced by discover_xml_get_matching_devices(). |
|
Free the list of XML devices. Definition at line 523 of file device-xml.c. References BUS_COUNT, and discover_device_free(). |
|
Get the list of devices for the required bus.
Definition at line 476 of file device-xml.c. References discover_error::code, discover_error_t, discover_xml_busclass_t, discover_xml_get_busclasses(), discover_xml_get_data_urls(), discover_xml_get_vendors(), discover_xml_merge_device_url(), discover_xml_url_get_next(), discover_xml_url_get_url(), discover_xml_url_t, and discover_xml_vendor_t. Referenced by discover_get_devices(). |
|
Find and duplicate all devices in xml_devices matching target_vendor and/or target_model. (One or both can be specified, but not zero.)
Definition at line 606 of file device-xml.c. References discover_device_copy(), discover_device_new(), discover_device_t, discover_error_t, discover_xml_find_device(), and discover_xml_find_next_device(). Referenced by discover_get_devices(). |
|
Merge new busclasses into a list.
Definition at line 418 of file device-xml.c. References discover_error::code, discover_device_t, DISCOVER_EIO, discover_error_t, DISCOVER_EXML, discover_xml_busclass_t, and discover_xml_vendor_t. Referenced by discover_xml_get_devices(). |