mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
vz: add missing flagged versions of API functions
Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
This commit is contained in:
parent
1a28c5e007
commit
a041ae571d
@ -1084,13 +1084,15 @@ vzDomainCreateWithFlags(virDomainPtr domain, unsigned int flags)
|
||||
}
|
||||
|
||||
static int
|
||||
vzDomainDestroy(virDomainPtr domain)
|
||||
vzDomainDestroyFlags(virDomainPtr domain, unsigned int flags)
|
||||
{
|
||||
vzConnPtr privconn = domain->conn->privateData;
|
||||
virDomainObjPtr dom;
|
||||
int ret = -1;
|
||||
bool job = false;
|
||||
|
||||
virCheckFlags(0, -1);
|
||||
|
||||
if (!(dom = vzDomObjFromDomainRef(domain)))
|
||||
return -1;
|
||||
|
||||
@ -1118,13 +1120,21 @@ vzDomainDestroy(virDomainPtr domain)
|
||||
}
|
||||
|
||||
static int
|
||||
vzDomainShutdown(virDomainPtr domain)
|
||||
vzDomainDestroy(virDomainPtr dom)
|
||||
{
|
||||
return vzDomainDestroyFlags(dom, 0);
|
||||
}
|
||||
|
||||
static int
|
||||
vzDomainShutdownFlags(virDomainPtr domain, unsigned int flags)
|
||||
{
|
||||
vzConnPtr privconn = domain->conn->privateData;
|
||||
virDomainObjPtr dom;
|
||||
int ret = -1;
|
||||
bool job = false;
|
||||
|
||||
virCheckFlags(0, -1);
|
||||
|
||||
if (!(dom = vzDomObjFromDomainRef(domain)))
|
||||
return -1;
|
||||
|
||||
@ -1151,6 +1161,11 @@ vzDomainShutdown(virDomainPtr domain)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int vzDomainShutdown(virDomainPtr dom)
|
||||
{
|
||||
return vzDomainShutdownFlags(dom, 0);
|
||||
}
|
||||
|
||||
static int
|
||||
vzDomainReboot(virDomainPtr domain, unsigned int flags)
|
||||
{
|
||||
@ -3163,7 +3178,9 @@ static virHypervisorDriver vzHypervisorDriver = {
|
||||
.domainSuspend = vzDomainSuspend, /* 0.10.0 */
|
||||
.domainResume = vzDomainResume, /* 0.10.0 */
|
||||
.domainDestroy = vzDomainDestroy, /* 0.10.0 */
|
||||
.domainDestroyFlags = vzDomainDestroyFlags, /* 2.2.0 */
|
||||
.domainShutdown = vzDomainShutdown, /* 0.10.0 */
|
||||
.domainShutdownFlags = vzDomainShutdownFlags, /* 2.2.0 */
|
||||
.domainCreate = vzDomainCreate, /* 0.10.0 */
|
||||
.domainCreateWithFlags = vzDomainCreateWithFlags, /* 1.2.10 */
|
||||
.domainReboot = vzDomainReboot, /* 1.3.0 */
|
||||
|
Loading…
Reference in New Issue
Block a user