提交 67cc35ad 编写于 作者: D Daniel Veillard

Finish hostonly networks support in vbox

* src/vbox/vbox_driver.c src/vbox/vbox_tmpl.c: last patch for
  hostonly networks support in vbox driver, patch by Pritesh Kothari
daniel
上级 37623bf4
Fri May 15 15:59:08 CEST 2009 Daniel Veillard <veillard@redhat.com>
* src/vbox/vbox_driver.c src/vbox/vbox_tmpl.c: last patch for
hostonly networks support in vbox driver, patch by Pritesh Kothari
Fri May 15 15:44:01 CEST 2009 Daniel Veillard <veillard@redhat.com>
* src/vbox/vbox_tmpl.c: implement vbox vrdp/sdl/gui support,
......
......@@ -40,8 +40,10 @@
extern virDriver vbox22Driver;
extern virNetworkDriver vbox22NetworkDriver;
#if 0
extern virDriver vbox25Driver;
extern virNetworkDriver vbox25NetworkDriver;
#endif
static virDriver vboxDriverDummy;
......@@ -54,6 +56,7 @@ static virDriver vboxDriverDummy;
int vboxRegister(void) {
virDriverPtr driver;
virNetworkDriverPtr networkDriver;
uint32_t uVersion;
/*
......@@ -63,6 +66,7 @@ int vboxRegister(void) {
* never work
*/
driver = &vboxDriverDummy;
networkDriver = &vbox22NetworkDriver;
/* Init the glue and get the API version. */
if (VBoxCGlueInit() == 0) {
......@@ -80,10 +84,12 @@ int vboxRegister(void) {
if (uVersion >= 2001052 && uVersion < 2002051) {
DEBUG0("VirtualBox API version: 2.2");
driver = &vbox22Driver;
networkDriver = &vbox22NetworkDriver;
#if 0
} else if (uVersion >= 2002051 && uVersion < 2005051) {
DEBUG0("VirtualBox API version: 2.5");
driver = &vbox25Driver;
networkDriver = &vbox25NetworkDriver;
#endif
} else {
DEBUG0("Unsupport VirtualBox API version");
......@@ -95,6 +101,8 @@ int vboxRegister(void) {
if (virRegisterDriver(driver) < 0)
return -1;
if (virRegisterNetworkDriver(networkDriver) < 0)
return -1;
return 0;
}
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册