mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
vbox: Drop support for VirtualBox-6.1.x
According to VirtualBox download page [1] the support for version 6.1.x was terminated a year ago. Drop support for it. 1: https://www.virtualbox.org/wiki/Download_Old_Builds_6_1 Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
5ca7f27f75
commit
335bceb115
@ -1,5 +1,4 @@
|
||||
vbox_driver_sources = [
|
||||
'vbox_V6_1.c',
|
||||
'vbox_V7_0.c',
|
||||
'vbox_common.c',
|
||||
'vbox_driver.c',
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,13 +0,0 @@
|
||||
/** @file vbox_V6_1.c
|
||||
* C file to include support for multiple versions of VirtualBox
|
||||
* at runtime.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
/** The API Version */
|
||||
#define VBOX_API_VERSION 6001000
|
||||
/** Version specific prefix. */
|
||||
#define NAME(name) vbox61##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_v6_1.h"
|
||||
# include "vbox_CAPI_v7_0.h"
|
||||
|
||||
/** Pointer to VBoxGetXPCOMCFunctions for the loaded VBoxXPCOMC so/dylib/dll. */
|
||||
extern PFNVBOXGETXPCOMCFUNCTIONS g_pfnGetFunctions;
|
||||
|
@ -446,9 +446,7 @@ typedef struct nsIException nsIException;
|
||||
#define installUniformedAPI(gVBoxAPI, result) \
|
||||
do { \
|
||||
result = 0; \
|
||||
if (uVersion >= 6000051 && uVersion < 6001051) { \
|
||||
vbox61InstallUniformedAPI(&gVBoxAPI); \
|
||||
} else if (uVersion >= 7000000 && uVersion < 7001000) { \
|
||||
if (uVersion >= 7000000 && uVersion < 7001000) { \
|
||||
vbox70InstallUniformedAPI(&gVBoxAPI); \
|
||||
} else { \
|
||||
result = -1; \
|
||||
|
@ -877,9 +877,7 @@ virStorageDriver *vboxGetStorageDriver(uint32_t uVersion)
|
||||
/* Install gVBoxAPI according to the vbox API version.
|
||||
* Return -1 for unsupported version.
|
||||
*/
|
||||
if (uVersion >= 6000051 && uVersion < 6001051) {
|
||||
vbox61InstallUniformedAPI(&gVBoxAPI);
|
||||
} else if (uVersion >= 7000000 && uVersion < 7000004) {
|
||||
if (uVersion >= 7000000 && uVersion < 7000004) {
|
||||
vbox70InstallUniformedAPI(&gVBoxAPI);
|
||||
} else {
|
||||
return NULL;
|
||||
|
@ -44,9 +44,7 @@
|
||||
#include "virstring.h"
|
||||
|
||||
/* This one changes from version to version. */
|
||||
#if VBOX_API_VERSION == 6001000
|
||||
# include "vbox_CAPI_v6_1.h"
|
||||
#elif VBOX_API_VERSION == 7000000
|
||||
#if VBOX_API_VERSION == 7000000
|
||||
# include "vbox_CAPI_v7_0.h"
|
||||
#else
|
||||
# error "Unsupported VBOX_API_VERSION"
|
||||
|
@ -561,5 +561,4 @@ virDomainPtr vboxDomainLookupByUUID(virConnectPtr conn,
|
||||
const unsigned char *uuid);
|
||||
|
||||
/* Version specified functions for installing uniformed API */
|
||||
void vbox61InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
void vbox70InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
|
Loading…
x
Reference in New Issue
Block a user