mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 21:15:20 +00:00
vbox: Rewrite vboxDomainCreate
This commit is contained in:
parent
815d17398c
commit
e979ad3991
@ -2155,3 +2155,8 @@ int vboxDomainCreateWithFlags(virDomainPtr dom, unsigned int flags)
|
||||
cleanup:
|
||||
return ret;
|
||||
}
|
||||
|
||||
int vboxDomainCreate(virDomainPtr dom)
|
||||
{
|
||||
return vboxDomainCreateWithFlags(dom, 0);
|
||||
}
|
||||
|
@ -265,8 +265,6 @@ static vboxGlobalData *g_pVBoxGlobalData = NULL;
|
||||
|
||||
#endif /* VBOX_API_VERSION >= 4000000 */
|
||||
|
||||
static int vboxDomainCreate(virDomainPtr dom);
|
||||
|
||||
#if VBOX_API_VERSION > 2002000 && VBOX_API_VERSION < 4000000
|
||||
/* Since vboxConnectGetCapabilities has been rewritten,
|
||||
* vboxDriverLock and vboxDriverUnlock only be used in code for
|
||||
@ -3081,11 +3079,6 @@ static int vboxConnectNumOfDefinedDomains(virConnectPtr conn)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int vboxDomainCreate(virDomainPtr dom)
|
||||
{
|
||||
return vboxDomainCreateWithFlags(dom, 0);
|
||||
}
|
||||
|
||||
#if VBOX_API_VERSION < 3001000
|
||||
|
||||
static void
|
||||
|
@ -406,6 +406,7 @@ virDomainPtr vboxDomainLookupByUUID(virConnectPtr conn,
|
||||
virDomainPtr vboxDomainDefineXML(virConnectPtr conn, const char *xml);
|
||||
int vboxDomainUndefineFlags(virDomainPtr dom, unsigned int flags);
|
||||
int vboxDomainCreateWithFlags(virDomainPtr dom, unsigned int flags);
|
||||
int vboxDomainCreate(virDomainPtr dom);
|
||||
|
||||
/* Version specified functions for installing uniformed API */
|
||||
void vbox22InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
|
Loading…
x
Reference in New Issue
Block a user