[Spice-devel] [PATCH spice-gtk 1/7] usb-device-manager: Put all windows field in a single #if section

Frediano Ziglio fziglio at redhat.com
Thu Jul 11 13:00:48 UTC 2019


This reduces conditional code.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 src/usb-device-manager.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/usb-device-manager.c b/src/usb-device-manager.c
index 860f5c19..479558f4 100644
--- a/src/usb-device-manager.c
+++ b/src/usb-device-manager.c
@@ -103,13 +103,11 @@ struct _SpiceUsbDeviceManagerPrivate {
     int redirect_on_connect_rules_count;
 #ifdef G_OS_WIN32
     GUdevClient *udev;
+    usbdk_api_wrapper *usbdk_api;
+    HANDLE usbdk_hider_handle;
 #else
     gboolean redirecting; /* Handled by GUdevClient in the gudev case */
 #endif
-#ifdef G_OS_WIN32
-    usbdk_api_wrapper     *usbdk_api;
-    HANDLE                 usbdk_hider_handle;
-#endif
 #endif
     GPtrArray *devices;
     GPtrArray *channels;
-- 
2.20.1



More information about the Spice-devel mailing list