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
This commit is contained in:
Daniel Veillard 2009-05-15 14:00:50 +00:00
parent 37623bf49a
commit 67cc35ade9
3 changed files with 1052 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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,

View File

@ -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;
}

File diff suppressed because it is too large Load Diff