vz: add missing flagged versions of API functions

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
This commit is contained in:
Nikolay Shirokovskiy 2016-06-24 17:32:34 +03:00 committed by Maxim Nestratov
parent 1a28c5e007
commit a041ae571d

View File

@ -1084,13 +1084,15 @@ vzDomainCreateWithFlags(virDomainPtr domain, unsigned int flags)
} }
static int static int
vzDomainDestroy(virDomainPtr domain) vzDomainDestroyFlags(virDomainPtr domain, unsigned int flags)
{ {
vzConnPtr privconn = domain->conn->privateData; vzConnPtr privconn = domain->conn->privateData;
virDomainObjPtr dom; virDomainObjPtr dom;
int ret = -1; int ret = -1;
bool job = false; bool job = false;
virCheckFlags(0, -1);
if (!(dom = vzDomObjFromDomainRef(domain))) if (!(dom = vzDomObjFromDomainRef(domain)))
return -1; return -1;
@ -1118,13 +1120,21 @@ vzDomainDestroy(virDomainPtr domain)
} }
static int 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; vzConnPtr privconn = domain->conn->privateData;
virDomainObjPtr dom; virDomainObjPtr dom;
int ret = -1; int ret = -1;
bool job = false; bool job = false;
virCheckFlags(0, -1);
if (!(dom = vzDomObjFromDomainRef(domain))) if (!(dom = vzDomObjFromDomainRef(domain)))
return -1; return -1;
@ -1151,6 +1161,11 @@ vzDomainShutdown(virDomainPtr domain)
return ret; return ret;
} }
static int vzDomainShutdown(virDomainPtr dom)
{
return vzDomainShutdownFlags(dom, 0);
}
static int static int
vzDomainReboot(virDomainPtr domain, unsigned int flags) vzDomainReboot(virDomainPtr domain, unsigned int flags)
{ {
@ -3163,7 +3178,9 @@ static virHypervisorDriver vzHypervisorDriver = {
.domainSuspend = vzDomainSuspend, /* 0.10.0 */ .domainSuspend = vzDomainSuspend, /* 0.10.0 */
.domainResume = vzDomainResume, /* 0.10.0 */ .domainResume = vzDomainResume, /* 0.10.0 */
.domainDestroy = vzDomainDestroy, /* 0.10.0 */ .domainDestroy = vzDomainDestroy, /* 0.10.0 */
.domainDestroyFlags = vzDomainDestroyFlags, /* 2.2.0 */
.domainShutdown = vzDomainShutdown, /* 0.10.0 */ .domainShutdown = vzDomainShutdown, /* 0.10.0 */
.domainShutdownFlags = vzDomainShutdownFlags, /* 2.2.0 */
.domainCreate = vzDomainCreate, /* 0.10.0 */ .domainCreate = vzDomainCreate, /* 0.10.0 */
.domainCreateWithFlags = vzDomainCreateWithFlags, /* 1.2.10 */ .domainCreateWithFlags = vzDomainCreateWithFlags, /* 1.2.10 */
.domainReboot = vzDomainReboot, /* 1.3.0 */ .domainReboot = vzDomainReboot, /* 1.3.0 */