提交 e979ad39 编写于 作者: T Taowei 提交者: Michal Privoznik

vbox: Rewrite vboxDomainCreate

上级 815d1739
...@@ -2155,3 +2155,8 @@ int vboxDomainCreateWithFlags(virDomainPtr dom, unsigned int flags) ...@@ -2155,3 +2155,8 @@ int vboxDomainCreateWithFlags(virDomainPtr dom, unsigned int flags)
cleanup: cleanup:
return ret; return ret;
} }
int vboxDomainCreate(virDomainPtr dom)
{
return vboxDomainCreateWithFlags(dom, 0);
}
...@@ -265,8 +265,6 @@ static vboxGlobalData *g_pVBoxGlobalData = NULL; ...@@ -265,8 +265,6 @@ static vboxGlobalData *g_pVBoxGlobalData = NULL;
#endif /* VBOX_API_VERSION >= 4000000 */ #endif /* VBOX_API_VERSION >= 4000000 */
static int vboxDomainCreate(virDomainPtr dom);
#if VBOX_API_VERSION > 2002000 && VBOX_API_VERSION < 4000000 #if VBOX_API_VERSION > 2002000 && VBOX_API_VERSION < 4000000
/* Since vboxConnectGetCapabilities has been rewritten, /* Since vboxConnectGetCapabilities has been rewritten,
* vboxDriverLock and vboxDriverUnlock only be used in code for * vboxDriverLock and vboxDriverUnlock only be used in code for
...@@ -3081,11 +3079,6 @@ static int vboxConnectNumOfDefinedDomains(virConnectPtr conn) ...@@ -3081,11 +3079,6 @@ static int vboxConnectNumOfDefinedDomains(virConnectPtr conn)
return ret; return ret;
} }
static int vboxDomainCreate(virDomainPtr dom)
{
return vboxDomainCreateWithFlags(dom, 0);
}
#if VBOX_API_VERSION < 3001000 #if VBOX_API_VERSION < 3001000
static void static void
......
...@@ -406,6 +406,7 @@ virDomainPtr vboxDomainLookupByUUID(virConnectPtr conn, ...@@ -406,6 +406,7 @@ virDomainPtr vboxDomainLookupByUUID(virConnectPtr conn,
virDomainPtr vboxDomainDefineXML(virConnectPtr conn, const char *xml); virDomainPtr vboxDomainDefineXML(virConnectPtr conn, const char *xml);
int vboxDomainUndefineFlags(virDomainPtr dom, unsigned int flags); int vboxDomainUndefineFlags(virDomainPtr dom, unsigned int flags);
int vboxDomainCreateWithFlags(virDomainPtr dom, unsigned int flags); int vboxDomainCreateWithFlags(virDomainPtr dom, unsigned int flags);
int vboxDomainCreate(virDomainPtr dom);
/* Version specified functions for installing uniformed API */ /* Version specified functions for installing uniformed API */
void vbox22InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI); void vbox22InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册