Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
libvirt.6841
2b4e16cf-vbox-hookup-the-5.1-C-API-to-the-unifi...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 2b4e16cf-vbox-hookup-the-5.1-C-API-to-the-unified-driver.patch of Package libvirt.6841
From 2b4e16cf2e2181f1bc19c6e23555b4135dd1f361 Mon Sep 17 00:00:00 2001 From: Dawid Zamirski <dzamirski@datto.com> Date: Tue, 8 Nov 2016 09:56:33 +0000 Subject: [PATCH 2/3] vbox: hookup the 5.1 C API to the unified driver --- src/Makefile.am | 1 + src/vbox/vbox_common.h | 2 ++ src/vbox/vbox_storage.c | 2 ++ src/vbox/vbox_tmpl.c | 2 ++ src/vbox/vbox_uniformed_api.h | 1 + 5 files changed, 8 insertions(+) Index: libvirt-2.0.0/src/Makefile.am =================================================================== --- libvirt-2.0.0.orig/src/Makefile.am +++ libvirt-2.0.0/src/Makefile.am @@ -793,6 +793,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 \ Index: libvirt-2.0.0/src/vbox/vbox_common.h =================================================================== --- libvirt-2.0.0.orig/src/vbox/vbox_common.h +++ libvirt-2.0.0/src/vbox/vbox_common.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; \ } \ Index: libvirt-2.0.0/src/vbox/vbox_storage.c =================================================================== --- libvirt-2.0.0.orig/src/vbox/vbox_storage.c +++ libvirt-2.0.0/src/vbox/vbox_storage.c @@ -910,6 +910,8 @@ virStorageDriverPtr vboxGetStorageDriver vbox43_4InstallUniformedAPI(&gVBoxAPI); } else if (uVersion >= 4003051 && uVersion < 5000051) { vbox50InstallUniformedAPI(&gVBoxAPI); + } else if (uVersion >= 5000051 && uVersion < 5001051) { + vbox51InstallUniformedAPI(&gVBoxAPI); } else { return NULL; } Index: libvirt-2.0.0/src/vbox/vbox_tmpl.c =================================================================== --- libvirt-2.0.0.orig/src/vbox/vbox_tmpl.c +++ libvirt-2.0.0/src/vbox/vbox_tmpl.c @@ -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 Index: libvirt-2.0.0/src/vbox/vbox_uniformed_api.h =================================================================== --- libvirt-2.0.0.orig/src/vbox/vbox_uniformed_api.h +++ libvirt-2.0.0/src/vbox/vbox_uniformed_api.h @@ -629,5 +629,6 @@ void vbox42_20InstallUniformedAPI(vboxUn void vbox43InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI); void vbox43_4InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI); void vbox50InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI); +void vbox51InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI); #endif /* VBOX_UNIFORMED_API_H */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor