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
|
||||
libxlDomainDestroy(virDomainPtr dom)
|
||||
libxlDomainDestroyFlags(virDomainPtr dom,
|
||||
unsigned int flags)
|
||||
{
|
||||
libxlDriverPrivatePtr driver = dom->conn->privateData;
|
||||
virDomainObjPtr vm;
|
||||
int ret = -1;
|
||||
virDomainEventPtr event = NULL;
|
||||
|
||||
virCheckFlags(0, -1);
|
||||
|
||||
libxlDriverLock(driver);
|
||||
vm = virDomainFindByUUID(&driver->domains, dom->uuid);
|
||||
if (!vm) {
|
||||
@ -1574,6 +1577,12 @@ cleanup:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int
|
||||
libxlDomainDestroy(virDomainPtr dom)
|
||||
{
|
||||
return libxlDomainDestroyFlags(dom, 0);
|
||||
}
|
||||
|
||||
static char *
|
||||
libxlDomainGetOSType(virDomainPtr dom)
|
||||
{
|
||||
@ -3842,6 +3851,7 @@ static virDriver libxlDriver = {
|
||||
.domainShutdown = libxlDomainShutdown, /* 0.9.0 */
|
||||
.domainReboot = libxlDomainReboot, /* 0.9.0 */
|
||||
.domainDestroy = libxlDomainDestroy, /* 0.9.0 */
|
||||
.domainDestroyFlags = libxlDomainDestroyFlags, /* 0.9.4 */
|
||||
.domainGetOSType = libxlDomainGetOSType, /* 0.9.0 */
|
||||
.domainGetMaxMemory = libxlDomainGetMaxMemory, /* 0.9.0 */
|
||||
.domainSetMaxMemory = libxlDomainSetMaxMemory, /* 0.9.2 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user