]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
vbox: remove support for version 5.1 API
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 17 Apr 2020 11:03:50 +0000 (12:03 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 20 Apr 2020 10:34:59 +0000 (11:34 +0100)
This is no longer supported since 2018/04

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/vbox/Makefile.inc.am
src/vbox/vbox_V5_1.c [deleted file]
src/vbox/vbox_XPCOMCGlue.h
src/vbox/vbox_common.h
src/vbox/vbox_storage.c
src/vbox/vbox_tmpl.c
src/vbox/vbox_uniformed_api.h

index c05fa7a7b95f44cbd9aa7fdcb8834e0460b6b521..3b4c6b8f989fbfb15f4c054d71525e0722369aad 100644 (file)
@@ -7,8 +7,6 @@ VBOX_DRIVER_SOURCES = \
        vbox/vbox_driver.h \
        vbox/vbox_snapshot_conf.c \
        vbox/vbox_snapshot_conf.h \
-       vbox/vbox_V5_1.c \
-       vbox/vbox_CAPI_v5_1.h \
        vbox/vbox_V5_2.c \
        vbox/vbox_CAPI_v5_2.h \
        vbox/vbox_common.c \
diff --git a/src/vbox/vbox_V5_1.c b/src/vbox/vbox_V5_1.c
deleted file mode 100644 (file)
index 839bced..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-/** @file vbox_V5_1.c
- * C file to include support for multiple versions of VirtualBox
- * at runtime.
- */
-
-#include <config.h>
-
-/** The API Version */
-#define VBOX_API_VERSION 5001000
-/** Version specific prefix. */
-#define NAME(name) vbox51##name
-
-#include "vbox_tmpl.c"
index 0f3fc4151286da10c8293d5558807040e5b673ec..517b02393f9defe1f13c5f3757a5711f9ae57830 100644 (file)
@@ -30,7 +30,7 @@
 # define ___VBoxXPCOMC_cglue_h
 
 /* This has to be the oldest version we support. */
-# include "vbox_CAPI_v5_1.h"
+# include "vbox_CAPI_v5_2.h"
 
 /** Pointer to VBoxGetXPCOMCFunctions for the loaded VBoxXPCOMC so/dylib/dll. */
 extern PFNVBOXGETXPCOMCFUNCTIONS g_pfnGetFunctions;
index 0a699e32778beccf7dde232de8b1da81f61aa522..9ea984276ddb722e90d1e98bc1bc745964d335bb 100644 (file)
@@ -429,9 +429,7 @@ typedef nsISupports IKeyboard;
 #define installUniformedAPI(gVBoxAPI, result) \
     do { \
         result = 0; \
-        if (uVersion >= 5000051 && uVersion < 5001051) { \
-            vbox51InstallUniformedAPI(&gVBoxAPI); \
-        } else if (uVersion >= 5001051 && uVersion < 5002051) { \
+        if (uVersion >= 5001051 && uVersion < 5002051) { \
             vbox52InstallUniformedAPI(&gVBoxAPI); \
         } else { \
             result = -1; \
index 730c8c5a05156dc07ff4c825625786c8f2555d8b..e0b82f4bd8bf4e975317f9e32c895ca9fea56cc1 100644 (file)
@@ -880,9 +880,7 @@ virStorageDriverPtr vboxGetStorageDriver(uint32_t uVersion)
     /* Install gVBoxAPI according to the vbox API version.
      * Return -1 for unsupported version.
      */
-    if (uVersion >= 5000051 && uVersion < 5001051) {
-        vbox51InstallUniformedAPI(&gVBoxAPI);
-    } else if (uVersion >= 5001051 && uVersion < 5002051) {
+    if (uVersion >= 5001051 && uVersion < 5002051) {
         vbox52InstallUniformedAPI(&gVBoxAPI);
     } else {
         return NULL;
index 1ceb8b487a8f9120a00009efa316a616e0d79881..94fdf211d91feac32c1ce0ef52159c215cea4263 100644 (file)
@@ -49,9 +49,7 @@
 #include "virutil.h"
 
 /* This one changes from version to version. */
-#if VBOX_API_VERSION == 5001000
-# include "vbox_CAPI_v5_1.h"
-#elif VBOX_API_VERSION == 5002000
+#if VBOX_API_VERSION == 5002000
 # include "vbox_CAPI_v5_2.h"
 #else
 # error "Unsupport VBOX_API_VERSION"
index 2a592e0cb4d8af6c2b3c385ca1a227f9039f8e45..8e2f21743964612b7970e55a8140c8abd298866c 100644 (file)
@@ -555,5 +555,4 @@ virDomainPtr vboxDomainLookupByUUID(virConnectPtr conn,
                                     const unsigned char *uuid);
 
 /* Version specified functions for installing uniformed API */
-void vbox51InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
 void vbox52InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);