]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add support for VirtualBox 4.2 APIs
authorryan woodsmall <rwoodsmall@gmail.com>
Tue, 2 Oct 2012 09:00:54 +0000 (04:00 -0500)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 7 Jun 2013 13:47:45 +0000 (14:47 +0100)
commitab7110bff6ee21da0e2fad8c3bb0dc8f8d2ac8df
treee2c35c6a193701deeff4e3721602d83a7cdd5081
parentb72ba1da364a8f72aaba2f703dd84daf38b99dcc
Add support for VirtualBox 4.2 APIs

A few things have changed in the VirtualBox API - some small
(capitalizations of things in function names like Ip to IP
and Dhcp to DHCP) and some much larger (FindMedium is superceded
by OpenMedium). The biggest change for the sake of this patch
is the signature of CreateMachine is quite a bit different. Using
the Oracle source as a guide, to spin up a VM with a given UUID,
it looks like a text flag has to be passed in a new argument to
CreateMachine. This flag is built in the VirtualBox 4.2 specific
ifdefs and is kind of ugly but works. Additionally, there is now
(unused) VM groups support in CreateMachine and the previous
'osTypeId' arg is currently set to nsnull as in the Oracle code.

The FindMedium to OpenMedium changes were more straightforward
and are pretty clear. The rest of the vbox template changes are
basically spelling/capitalization changes from the looks of things.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/Makefile.am
src/vbox/vbox_CAPI_v4_2.h [new file with mode: 0644]
src/vbox/vbox_V4_2.c [new file with mode: 0644]
src/vbox/vbox_driver.c
src/vbox/vbox_tmpl.c