mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
vz: implement plain create API thru createFlags instead of visa versa
Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
This commit is contained in:
parent
db66c35e2e
commit
4cdf203263
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user