mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-27 13:52:20 +00:00
rename qemu*USBDevices to virHostdev*USBDevices
This commit is contained in:
parent
b7508481f1
commit
27da1757c8
@ -234,7 +234,7 @@ out:
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
qemuPrepareHostdevUSBDevices(virHostdevManagerPtr mgr,
|
virHostdevMarkUsbHostdevs(virHostdevManagerPtr mgr,
|
||||||
const char *name,
|
const char *name,
|
||||||
virUSBDeviceListPtr list)
|
virUSBDeviceListPtr list)
|
||||||
{
|
{
|
||||||
@ -291,7 +291,7 @@ error:
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
qemuFindHostdevUSBDevice(virDomainHostdevDefPtr hostdev,
|
virHostdevFindUSBDevice(virDomainHostdevDefPtr hostdev,
|
||||||
bool mandatory,
|
bool mandatory,
|
||||||
virUSBDevicePtr *usb)
|
virUSBDevicePtr *usb)
|
||||||
{
|
{
|
||||||
@ -415,7 +415,7 @@ virHostdevPrepareUSBDevices(virHostdevManagerPtr hostdev_mgr,
|
|||||||
!coldBoot))
|
!coldBoot))
|
||||||
required = false;
|
required = false;
|
||||||
|
|
||||||
if (qemuFindHostdevUSBDevice(hostdev, required, &usb) < 0)
|
if (virHostdevFindUSBDevice(hostdev, required, &usb) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (usb && virUSBDeviceListAdd(list, usb) < 0) {
|
if (usb && virUSBDeviceListAdd(list, usb) < 0) {
|
||||||
@ -428,7 +428,7 @@ virHostdevPrepareUSBDevices(virHostdevManagerPtr hostdev_mgr,
|
|||||||
* and add them do driver list. However, if something goes
|
* and add them do driver list. However, if something goes
|
||||||
* wrong, perform rollback.
|
* wrong, perform rollback.
|
||||||
*/
|
*/
|
||||||
if (qemuPrepareHostdevUSBDevices(hostdev_mgr, name, list) < 0)
|
if (virHostdevMarkUsbHostdevs(hostdev_mgr, name, list) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
/* Loop 2: Temporary list was successfully merged with
|
/* Loop 2: Temporary list was successfully merged with
|
||||||
|
Loading…
x
Reference in New Issue
Block a user