mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-08 22:15:21 +00:00
vbox: remove calls to *InstallUniformedAPI macros.
That is, for versions older than 4.0. Also do not try to include headers for those old versions.
This commit is contained in:
parent
7f10ac33e9
commit
655a99f166
@ -410,15 +410,7 @@ typedef nsISupports IKeyboard;
|
||||
# define installUniformedAPI(gVBoxAPI, result) \
|
||||
do { \
|
||||
result = 0; \
|
||||
if (uVersion >= 2001052 && uVersion < 2002051) { \
|
||||
vbox22InstallUniformedAPI(&gVBoxAPI); \
|
||||
} else if (uVersion >= 2002051 && uVersion < 3000051) { \
|
||||
vbox30InstallUniformedAPI(&gVBoxAPI); \
|
||||
} else if (uVersion >= 3000051 && uVersion < 3001051) { \
|
||||
vbox31InstallUniformedAPI(&gVBoxAPI); \
|
||||
} else if (uVersion >= 3001051 && uVersion < 3002051) { \
|
||||
vbox32InstallUniformedAPI(&gVBoxAPI); \
|
||||
} else if (uVersion >= 3002051 && uVersion < 4000051) { \
|
||||
if (uVersion >= 3002051 && uVersion < 4000051) { \
|
||||
vbox40InstallUniformedAPI(&gVBoxAPI); \
|
||||
} else if (uVersion >= 4000051 && uVersion < 4001051) { \
|
||||
vbox41InstallUniformedAPI(&gVBoxAPI); \
|
||||
|
@ -888,15 +888,7 @@ virStorageDriverPtr vboxGetStorageDriver(uint32_t uVersion)
|
||||
/* Install gVBoxAPI according to the vbox API version.
|
||||
* Return -1 for unsupported version.
|
||||
*/
|
||||
if (uVersion >= 2001052 && uVersion < 2002051) {
|
||||
vbox22InstallUniformedAPI(&gVBoxAPI);
|
||||
} else if (uVersion >= 2002051 && uVersion < 3000051) {
|
||||
vbox30InstallUniformedAPI(&gVBoxAPI);
|
||||
} else if (uVersion >= 3000051 && uVersion < 3001051) {
|
||||
vbox31InstallUniformedAPI(&gVBoxAPI);
|
||||
} else if (uVersion >= 3001051 && uVersion < 3002051) {
|
||||
vbox32InstallUniformedAPI(&gVBoxAPI);
|
||||
} else if (uVersion >= 3002051 && uVersion < 4000051) {
|
||||
if (uVersion >= 3002051 && uVersion < 4000051) {
|
||||
vbox40InstallUniformedAPI(&gVBoxAPI);
|
||||
} else if (uVersion >= 4000051 && uVersion < 4001051) {
|
||||
vbox41InstallUniformedAPI(&gVBoxAPI);
|
||||
|
@ -616,10 +616,6 @@ virDomainPtr vboxDomainLookupByUUID(virConnectPtr conn,
|
||||
const unsigned char *uuid);
|
||||
|
||||
/* Version specified functions for installing uniformed API */
|
||||
void vbox22InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
void vbox30InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
void vbox31InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
void vbox32InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
void vbox40InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
void vbox41InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
void vbox42InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
|
Loading…
Reference in New Issue
Block a user