mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 13:05:27 +00:00
vbox: remove support for version 5.0 API
This is no longer supported since 2017/05 Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
281f445b6f
commit
118d386464
@ -7,8 +7,6 @@ VBOX_DRIVER_SOURCES = \
|
||||
vbox/vbox_driver.h \
|
||||
vbox/vbox_snapshot_conf.c \
|
||||
vbox/vbox_snapshot_conf.h \
|
||||
vbox/vbox_V5_0.c \
|
||||
vbox/vbox_CAPI_v5_0.h \
|
||||
vbox/vbox_V5_1.c \
|
||||
vbox/vbox_CAPI_v5_1.h \
|
||||
vbox/vbox_V5_2.c \
|
||||
|
@ -1,13 +0,0 @@
|
||||
/** @file vbox_V5_0.c
|
||||
* C file to include support for multiple versions of VirtualBox
|
||||
* at runtime.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
/** The API Version */
|
||||
#define VBOX_API_VERSION 5000000
|
||||
/** Version specific prefix. */
|
||||
#define NAME(name) vbox50##name
|
||||
|
||||
#include "vbox_tmpl.c"
|
@ -30,7 +30,7 @@
|
||||
# define ___VBoxXPCOMC_cglue_h
|
||||
|
||||
/* This has to be the oldest version we support. */
|
||||
# include "vbox_CAPI_v5_0.h"
|
||||
# include "vbox_CAPI_v5_1.h"
|
||||
|
||||
/** Pointer to VBoxGetXPCOMCFunctions for the loaded VBoxXPCOMC so/dylib/dll. */
|
||||
extern PFNVBOXGETXPCOMCFUNCTIONS g_pfnGetFunctions;
|
||||
|
@ -429,9 +429,7 @@ typedef nsISupports IKeyboard;
|
||||
#define installUniformedAPI(gVBoxAPI, result) \
|
||||
do { \
|
||||
result = 0; \
|
||||
if (uVersion >= 5000000 && uVersion < 5000051) { \
|
||||
vbox50InstallUniformedAPI(&gVBoxAPI); \
|
||||
} else if (uVersion >= 5000051 && uVersion < 5001051) { \
|
||||
if (uVersion >= 5000051 && uVersion < 5001051) { \
|
||||
vbox51InstallUniformedAPI(&gVBoxAPI); \
|
||||
} else if (uVersion >= 5001051 && uVersion < 5002051) { \
|
||||
vbox52InstallUniformedAPI(&gVBoxAPI); \
|
||||
|
@ -880,9 +880,7 @@ virStorageDriverPtr vboxGetStorageDriver(uint32_t uVersion)
|
||||
/* Install gVBoxAPI according to the vbox API version.
|
||||
* Return -1 for unsupported version.
|
||||
*/
|
||||
if (uVersion >= 5000000 && uVersion < 5000051) {
|
||||
vbox50InstallUniformedAPI(&gVBoxAPI);
|
||||
} else if (uVersion >= 5000051 && uVersion < 5001051) {
|
||||
if (uVersion >= 5000051 && uVersion < 5001051) {
|
||||
vbox51InstallUniformedAPI(&gVBoxAPI);
|
||||
} else if (uVersion >= 5001051 && uVersion < 5002051) {
|
||||
vbox52InstallUniformedAPI(&gVBoxAPI);
|
||||
|
@ -49,9 +49,7 @@
|
||||
#include "virutil.h"
|
||||
|
||||
/* This one changes from version to version. */
|
||||
#if VBOX_API_VERSION == 5000000
|
||||
# include "vbox_CAPI_v5_0.h"
|
||||
#elif VBOX_API_VERSION == 5001000
|
||||
#if VBOX_API_VERSION == 5001000
|
||||
# include "vbox_CAPI_v5_1.h"
|
||||
#elif VBOX_API_VERSION == 5002000
|
||||
# include "vbox_CAPI_v5_2.h"
|
||||
|
@ -555,6 +555,5 @@ virDomainPtr vboxDomainLookupByUUID(virConnectPtr conn,
|
||||
const unsigned char *uuid);
|
||||
|
||||
/* Version specified functions for installing uniformed API */
|
||||
void vbox50InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
void vbox51InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
void vbox52InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
|
Loading…
x
Reference in New Issue
Block a user