]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
vbox: add support for v4.2.20+ and v4.3.4+
authorJean-Baptiste Rouault <jean-baptiste.rouault@diateam.net>
Tue, 24 Dec 2013 09:39:38 +0000 (09:39 +0000)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 22 Jan 2014 22:12:52 +0000 (23:12 +0100)
commitbb85da2cb123f3b6e5439634fbcc3849409251b1
treee8b8c5df1c2cac850ffd1e4610cf2277ac43ebe8
parent7f0fd427413fe04963b1bcb158cf70e980ad1842
vbox: add support for v4.2.20+ and v4.3.4+

Bugs have been found in the VirtualBox API C bindings. These bugs have
been fixed in versions 4.2.20 and 4.3.4. However, the changes in the
C bindings are incompatible with the vbox_CAPI_v4_2.h and vbox_CAPI_v4_3.h
files which are bundled in libvirt source code.
This is why the following patch adds vbox_CAPI_v4_2_20.h and
vbox_CAPI_v4_3_4.h.

The actual underlying problem here is that until now,
libvirt assumed that VirtualBox API can only change between minor
versions (4.2 -> 4.3), but we have a case here where it changed
(or got fixed) between patch versions (4.2.18 -> 4.2.20).

This patch makes the VBOX_API_VERSION represent the full API
version number (i.e 4002 => 4002000) so there are specific version
numbers for Vbox 4.2.20 (4002020) and 4.3.4 (4003004)
15 files changed:
src/Makefile.am
src/vbox/vbox_CAPI_v4_2_20.h [new file with mode: 0644]
src/vbox/vbox_CAPI_v4_3_4.h [new file with mode: 0644]
src/vbox/vbox_V2_2.c
src/vbox/vbox_V3_0.c
src/vbox/vbox_V3_1.c
src/vbox/vbox_V3_2.c
src/vbox/vbox_V4_0.c
src/vbox/vbox_V4_1.c
src/vbox/vbox_V4_2.c
src/vbox/vbox_V4_2_20.c [new file with mode: 0644]
src/vbox/vbox_V4_3.c
src/vbox/vbox_V4_3_4.c [new file with mode: 0644]
src/vbox/vbox_driver.c
src/vbox/vbox_tmpl.c