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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This reduces conditional code.

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]