mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-23 03:42:19 +00:00
qemu_hotplug: rename Chr and Lease Detach functions
qemuDomainDetachDeviceChr and qemuDomainDetachDeviceLease are more consistent with each other. Signed-off-by: Laine Stump <laine@laine.org> ACKed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
b6a53bf907
commit
e1949c7045
@ -5924,7 +5924,7 @@ qemuDomainDetachPrepNet(virQEMUDriverPtr driver,
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
qemuDomainDetachChrDevice(virQEMUDriverPtr driver,
|
qemuDomainDetachDeviceChr(virQEMUDriverPtr driver,
|
||||||
virDomainObjPtr vm,
|
virDomainObjPtr vm,
|
||||||
virDomainChrDefPtr chr,
|
virDomainChrDefPtr chr,
|
||||||
bool async)
|
bool async)
|
||||||
@ -6168,7 +6168,7 @@ qemuDomainDetachPrepVsock(virDomainObjPtr vm,
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
qemuDomainDetachLease(virQEMUDriverPtr driver,
|
qemuDomainDetachDeviceLease(virQEMUDriverPtr driver,
|
||||||
virDomainObjPtr vm,
|
virDomainObjPtr vm,
|
||||||
virDomainLeaseDefPtr lease)
|
virDomainLeaseDefPtr lease)
|
||||||
{
|
{
|
||||||
@ -6207,10 +6207,10 @@ qemuDomainDetachDeviceLive(virDomainObjPtr vm,
|
|||||||
* Detach functions.
|
* Detach functions.
|
||||||
*/
|
*/
|
||||||
case VIR_DOMAIN_DEVICE_LEASE:
|
case VIR_DOMAIN_DEVICE_LEASE:
|
||||||
return qemuDomainDetachLease(driver, vm, match->data.lease);
|
return qemuDomainDetachDeviceLease(driver, vm, match->data.lease);
|
||||||
|
|
||||||
case VIR_DOMAIN_DEVICE_CHR:
|
case VIR_DOMAIN_DEVICE_CHR:
|
||||||
return qemuDomainDetachChrDevice(driver, vm, match->data.chr, async);
|
return qemuDomainDetachDeviceChr(driver, vm, match->data.chr, async);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* All the other device types follow a very similar pattern -
|
* All the other device types follow a very similar pattern -
|
||||||
|
Loading…
x
Reference in New Issue
Block a user