mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 01:43:23 +00:00
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>
|
Fri May 15 15:44:01 CEST 2009 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
* src/vbox/vbox_tmpl.c: implement vbox vrdp/sdl/gui support,
|
* src/vbox/vbox_tmpl.c: implement vbox vrdp/sdl/gui support,
|
||||||
|
@ -40,8 +40,10 @@
|
|||||||
|
|
||||||
|
|
||||||
extern virDriver vbox22Driver;
|
extern virDriver vbox22Driver;
|
||||||
|
extern virNetworkDriver vbox22NetworkDriver;
|
||||||
#if 0
|
#if 0
|
||||||
extern virDriver vbox25Driver;
|
extern virDriver vbox25Driver;
|
||||||
|
extern virNetworkDriver vbox25NetworkDriver;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static virDriver vboxDriverDummy;
|
static virDriver vboxDriverDummy;
|
||||||
@ -54,6 +56,7 @@ static virDriver vboxDriverDummy;
|
|||||||
|
|
||||||
int vboxRegister(void) {
|
int vboxRegister(void) {
|
||||||
virDriverPtr driver;
|
virDriverPtr driver;
|
||||||
|
virNetworkDriverPtr networkDriver;
|
||||||
uint32_t uVersion;
|
uint32_t uVersion;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -63,6 +66,7 @@ int vboxRegister(void) {
|
|||||||
* never work
|
* never work
|
||||||
*/
|
*/
|
||||||
driver = &vboxDriverDummy;
|
driver = &vboxDriverDummy;
|
||||||
|
networkDriver = &vbox22NetworkDriver;
|
||||||
|
|
||||||
/* Init the glue and get the API version. */
|
/* Init the glue and get the API version. */
|
||||||
if (VBoxCGlueInit() == 0) {
|
if (VBoxCGlueInit() == 0) {
|
||||||
@ -80,10 +84,12 @@ int vboxRegister(void) {
|
|||||||
if (uVersion >= 2001052 && uVersion < 2002051) {
|
if (uVersion >= 2001052 && uVersion < 2002051) {
|
||||||
DEBUG0("VirtualBox API version: 2.2");
|
DEBUG0("VirtualBox API version: 2.2");
|
||||||
driver = &vbox22Driver;
|
driver = &vbox22Driver;
|
||||||
|
networkDriver = &vbox22NetworkDriver;
|
||||||
#if 0
|
#if 0
|
||||||
} else if (uVersion >= 2002051 && uVersion < 2005051) {
|
} else if (uVersion >= 2002051 && uVersion < 2005051) {
|
||||||
DEBUG0("VirtualBox API version: 2.5");
|
DEBUG0("VirtualBox API version: 2.5");
|
||||||
driver = &vbox25Driver;
|
driver = &vbox25Driver;
|
||||||
|
networkDriver = &vbox25NetworkDriver;
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
DEBUG0("Unsupport VirtualBox API version");
|
DEBUG0("Unsupport VirtualBox API version");
|
||||||
@ -95,6 +101,8 @@ int vboxRegister(void) {
|
|||||||
|
|
||||||
if (virRegisterDriver(driver) < 0)
|
if (virRegisterDriver(driver) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
if (virRegisterNetworkDriver(networkDriver) < 0)
|
||||||
|
return -1;
|
||||||
|
|
||||||
return 0;
|
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
Block a user