提交 4cdf2032 编写于 作者: N Nikolay Shirokovskiy 提交者: Maxim Nestratov

vz: implement plain create API thru createFlags instead of visa versa

Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
上级 db66c35e
......@@ -1048,13 +1048,15 @@ vzDomainResume(virDomainPtr domain)
}
static int
vzDomainCreate(virDomainPtr domain)
vzDomainCreateWithFlags(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;
......@@ -1200,12 +1202,9 @@ static int vzDomainIsActive(virDomainPtr domain)
}
static int
vzDomainCreateWithFlags(virDomainPtr domain, unsigned int flags)
vzDomainCreate(virDomainPtr domain)
{
/* we don't support any create flags */
virCheckFlags(0, -1);
return vzDomainCreate(domain);
return vzDomainCreateWithFlags(domain, 0);
}
static int
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册