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

Victor Toso victortoso at redhat.com
Thu Jul 11 13:23:11 UTC 2019


For 1-5,
Acked-by: Victor Toso <victortoso at redhat.com>

On Thu, Jul 11, 2019 at 02:00:48PM +0100, Frediano Ziglio wrote:
> 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
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20190711/14a8a49e/attachment-0001.sig>


More information about the Spice-devel mailing list