提交 e1949c70 编写于 作者: L Laine Stump

qemu_hotplug: rename Chr and Lease Detach functions

qemuDomainDetachDeviceChr and qemuDomainDetachDeviceLease are more
consistent with each other.
Signed-off-by: NLaine Stump <laine@laine.org>
ACKed-by: NPeter Krempa <pkrempa@redhat.com>
上级 b6a53bf9
......@@ -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 -
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册