mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +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
|
||||
qemuDomainDetachChrDevice(virQEMUDriverPtr driver,
|
||||
qemuDomainDetachDeviceChr(virQEMUDriverPtr driver,
|
||||
virDomainObjPtr vm,
|
||||
virDomainChrDefPtr chr,
|
||||
bool async)
|
||||
@ -6168,9 +6168,9 @@ qemuDomainDetachPrepVsock(virDomainObjPtr vm,
|
||||
|
||||
|
||||
static int
|
||||
qemuDomainDetachLease(virQEMUDriverPtr driver,
|
||||
virDomainObjPtr vm,
|
||||
virDomainLeaseDefPtr lease)
|
||||
qemuDomainDetachDeviceLease(virQEMUDriverPtr driver,
|
||||
virDomainObjPtr vm,
|
||||
virDomainLeaseDefPtr lease)
|
||||
{
|
||||
virDomainLeaseDefPtr det_lease;
|
||||
int idx;
|
||||
@ -6207,10 +6207,10 @@ qemuDomainDetachDeviceLive(virDomainObjPtr vm,
|
||||
* Detach functions.
|
||||
*/
|
||||
case VIR_DOMAIN_DEVICE_LEASE:
|
||||
return qemuDomainDetachLease(driver, vm, match->data.lease);
|
||||
return qemuDomainDetachDeviceLease(driver, vm, match->data.lease);
|
||||
|
||||
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 -
|
||||
|
Loading…
x
Reference in New Issue
Block a user