mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-09 20:58:33 +03:00
destroy: Implement internal API for uml driver
This commit is contained in:
parent
e4e69b4bb2
commit
64ce43f82c
@ -1417,12 +1417,17 @@ cleanup:
|
||||
}
|
||||
|
||||
|
||||
static int umlDomainDestroy(virDomainPtr dom) {
|
||||
static int
|
||||
umlDomainDestroyFlags(virDomainPtr dom,
|
||||
unsigned int flags)
|
||||
{
|
||||
struct uml_driver *driver = dom->conn->privateData;
|
||||
virDomainObjPtr vm;
|
||||
virDomainEventPtr event = NULL;
|
||||
int ret = -1;
|
||||
|
||||
virCheckFlags(0, -1);
|
||||
|
||||
umlDriverLock(driver);
|
||||
vm = virDomainFindByID(&driver->domains, dom->id);
|
||||
if (!vm) {
|
||||
@ -1453,6 +1458,12 @@ cleanup:
|
||||
}
|
||||
|
||||
|
||||
static int umlDomainDestroy(virDomainPtr dom)
|
||||
{
|
||||
return umlDomainDestroyFlags(dom, 0);
|
||||
}
|
||||
|
||||
|
||||
static char *umlDomainGetOSType(virDomainPtr dom) {
|
||||
struct uml_driver *driver = dom->conn->privateData;
|
||||
virDomainObjPtr vm;
|
||||
@ -2423,6 +2434,7 @@ static virDriver umlDriver = {
|
||||
.domainLookupByName = umlDomainLookupByName, /* 0.5.0 */
|
||||
.domainShutdown = umlDomainShutdown, /* 0.5.0 */
|
||||
.domainDestroy = umlDomainDestroy, /* 0.5.0 */
|
||||
.domainDestroyFlags = umlDomainDestroyFlags, /* 0.9.4 */
|
||||
.domainGetOSType = umlDomainGetOSType, /* 0.5.0 */
|
||||
.domainGetMaxMemory = umlDomainGetMaxMemory, /* 0.5.0 */
|
||||
.domainSetMaxMemory = umlDomainSetMaxMemory, /* 0.5.0 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user