mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
37623bf49a
commit
67cc35ade9
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
1039
src/vbox/vbox_tmpl.c
1039
src/vbox/vbox_tmpl.c
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue