|
Free the data tree. Note that unlike the other free functions in Discover, this one does not free data_tree itself. This is a side-effect of how it is implemented. It frees all children and siblings of data_tree as well as the data. After calling discover_data_free, you have to call free(3) on data_tree itself.
Definition at line 436 of file device.c. References discover_data_t. Referenced by discover_device_free(). |
|
Get the child member of data. Definition at line 341 of file device.c. References discover_data_t. |
|
Get the class member of data. Definition at line 308 of file device.c. References discover_data_t. |
|
Get the first member of data. Definition at line 374 of file device.c. References discover_data_t. |
|
Get the next member of data. Definition at line 352 of file device.c. References discover_data_t. |
|
Get the parent member of data. Definition at line 330 of file device.c. References discover_data_t. |
|
Get the prev member of data. Definition at line 363 of file device.c. References discover_data_t. |
|
Get the text member of data. Definition at line 319 of file device.c. References discover_data_t. |
|
Create and initialize a new discover_data_t structure. Definition at line 409 of file device.c. References discover_data_t. |
|
Copy a device structure.
Definition at line 268 of file device.c. References discover_device_t. Referenced by discover_device_find(), and discover_xml_get_matching_devices(). |
|
Get a list of devices of a specified class on all buses scanned by default.
Definition at line 63 of file device.c. References discover_error::code, discover_error::create_message, discover_bus_map_t, discover_conf_get_full_bus_map(), discover_device_copy(), discover_device_get_next(), discover_device_new(), discover_device_t, DISCOVER_EDEVICENOTFOUND, discover_error_t, discover_get_devices(), DISCOVER_SUCCESS, discover_xml_busclass_cmp(), discover_xml_busclass_t, discover_xml_get_busclasses(), discover_bus_map::name, and discover_bus_map::scan_default. |
|
Free the device or list of devices. Pass 1 as the second argument to free the data structure for this device, 0 to leave it. It is necessary to specify 0 when one structure was copied from another with discover_device_copy. Otherwise, you must pass 1.
Definition at line 592 of file device.c. References discover_data_free(), and discover_device_t. Referenced by discover_free_devices(), and discover_xml_free_devices(). |
|
Get the busclass member of device. Definition at line 485 of file device.c. References discover_device_t. |
|
Get the data matching the class path and version number (optional) from the device structure. The class parameter requires further explanation. The XML data sources have hierarchical data elements for each device. You access the data in an element by specifying the path along the data elements to it. For example, device elements for video cards usually have a data element of class "xfree86" containing data related to the XFree86 package; that element itself usually contains a data element of class "server" that specifies which server to use for this video card. You access this data by passing the string "xfree86/server" to this function.
Definition at line 204 of file device.c. References discover_error::code, discover_data_t, discover_device_t, and discover_error_t. |
|
Get the data member of device. Definition at line 540 of file device.c. References discover_device_t. |
|
Get the model_id member of device. Definition at line 496 of file device.c. References discover_device_t. |
|
Get the model_name member of device. Definition at line 507 of file device.c. References discover_device_t. |
|
Get the next member of device. Definition at line 551 of file device.c. References discover_device_t. Referenced by discover_device_find(). |
|
Get the vendor_id member of device. Definition at line 518 of file device.c. References discover_device_t. |
|
Get the vendor_name member of device. Definition at line 529 of file device.c. References discover_device_t. |
|
Create and initialize a new discover_device_t structure. Definition at line 562 of file device.c. References discover_device_t. Referenced by discover_device_find(), discover_get_devices(), and discover_xml_get_matching_devices(). |