mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
destroy: Implement internal API for libxl driver
This commit is contained in:
parent
3959fe300e
commit
ba0219a752
@ -1526,13 +1526,16 @@ cleanup:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
libxlDomainDestroy(virDomainPtr dom)
|
libxlDomainDestroyFlags(virDomainPtr dom,
|
||||||
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
libxlDriverPrivatePtr driver = dom->conn->privateData;
|
libxlDriverPrivatePtr driver = dom->conn->privateData;
|
||||||
virDomainObjPtr vm;
|
virDomainObjPtr vm;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
virDomainEventPtr event = NULL;
|
virDomainEventPtr event = NULL;
|
||||||
|
|
||||||
|
virCheckFlags(0, -1);
|
||||||
|
|
||||||
libxlDriverLock(driver);
|
libxlDriverLock(driver);
|
||||||
vm = virDomainFindByUUID(&driver->domains, dom->uuid);
|
vm = virDomainFindByUUID(&driver->domains, dom->uuid);
|
||||||
if (!vm) {
|
if (!vm) {
|
||||||
@ -1574,6 +1577,12 @@ cleanup:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
libxlDomainDestroy(virDomainPtr dom)
|
||||||
|
{
|
||||||
|
return libxlDomainDestroyFlags(dom, 0);
|
||||||
|
}
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
libxlDomainGetOSType(virDomainPtr dom)
|
libxlDomainGetOSType(virDomainPtr dom)
|
||||||
{
|
{
|
||||||
@ -3842,6 +3851,7 @@ static virDriver libxlDriver = {
|
|||||||
.domainShutdown = libxlDomainShutdown, /* 0.9.0 */
|
.domainShutdown = libxlDomainShutdown, /* 0.9.0 */
|
||||||
.domainReboot = libxlDomainReboot, /* 0.9.0 */
|
.domainReboot = libxlDomainReboot, /* 0.9.0 */
|
||||||
.domainDestroy = libxlDomainDestroy, /* 0.9.0 */
|
.domainDestroy = libxlDomainDestroy, /* 0.9.0 */
|
||||||
|
.domainDestroyFlags = libxlDomainDestroyFlags, /* 0.9.4 */
|
||||||
.domainGetOSType = libxlDomainGetOSType, /* 0.9.0 */
|
.domainGetOSType = libxlDomainGetOSType, /* 0.9.0 */
|
||||||
.domainGetMaxMemory = libxlDomainGetMaxMemory, /* 0.9.0 */
|
.domainGetMaxMemory = libxlDomainGetMaxMemory, /* 0.9.0 */
|
||||||
.domainSetMaxMemory = libxlDomainSetMaxMemory, /* 0.9.2 */
|
.domainSetMaxMemory = libxlDomainSetMaxMemory, /* 0.9.2 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user