mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-08 22:15:21 +00:00
vbox: hookup the 5.1 C API to the unified driver
This commit is contained in:
parent
15209649bd
commit
4fd7194248
@ -800,6 +800,7 @@ VBOX_DRIVER_SOURCES = \
|
||||
vbox/vbox_V4_3.c vbox/vbox_CAPI_v4_3.h \
|
||||
vbox/vbox_V4_3_4.c vbox/vbox_CAPI_v4_3_4.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_common.c vbox/vbox_common.h \
|
||||
vbox/vbox_uniformed_api.h \
|
||||
vbox/vbox_get_driver.h \
|
||||
|
@ -432,6 +432,8 @@ typedef nsISupports IKeyboard;
|
||||
vbox43_4InstallUniformedAPI(&gVBoxAPI); \
|
||||
} else if (uVersion >= 4003051 && uVersion < 5000051) { \
|
||||
vbox50InstallUniformedAPI(&gVBoxAPI); \
|
||||
} else if (uVersion >= 5000051 && uVersion < 5001051) { \
|
||||
vbox51InstallUniformedAPI(&gVBoxAPI); \
|
||||
} else { \
|
||||
result = -1; \
|
||||
} \
|
||||
|
@ -910,6 +910,8 @@ virStorageDriverPtr vboxGetStorageDriver(uint32_t uVersion)
|
||||
vbox43_4InstallUniformedAPI(&gVBoxAPI);
|
||||
} else if (uVersion >= 4003051 && uVersion < 5000051) {
|
||||
vbox50InstallUniformedAPI(&gVBoxAPI);
|
||||
} else if (uVersion >= 5000051 && uVersion < 5001051) {
|
||||
vbox51InstallUniformedAPI(&gVBoxAPI);
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
|
@ -71,6 +71,8 @@
|
||||
# include "vbox_CAPI_v4_3_4.h"
|
||||
#elif VBOX_API_VERSION == 5000000
|
||||
# include "vbox_CAPI_v5_0.h"
|
||||
#elif VBOX_API_VERSION == 5001000
|
||||
# include "vbox_CAPI_v5_1.h"
|
||||
#else
|
||||
# error "Unsupport VBOX_API_VERSION"
|
||||
#endif
|
||||
|
@ -629,5 +629,6 @@ void vbox42_20InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
void vbox43InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
void vbox43_4InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
void vbox50InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
void vbox51InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
|
||||
|
||||
#endif /* VBOX_UNIFORMED_API_H */
|
||||
|
Loading…
Reference in New Issue
Block a user