@@ -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 \
new file mode 100644
@@ -0,0 +1,13 @@
+/** @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"
@@ -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 */