[Spice-commits] src/win-usb-dev.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Aug 14 15:32:46 UTC 2018
src/win-usb-dev.c | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 8c0fdcbc11b60d963e83be7fc1a23a945f1f6a6e
Author: Jorge Olmos <jorge.olmos at flexvdi.com>
Date: Mon Aug 13 15:45:06 2018 +0200
win-usb-dev: Set UsbDk backend on libusb 1.0.22
This patch configures libusb in the context used in win-usb-dev, with
the same backend as the context initialized in usb-device-manager.
Otherwise spice_usb_device_manager_libdev_match returns false for all
devices, and no usb device is offered to end user for redirection.
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
diff --git a/src/win-usb-dev.c b/src/win-usb-dev.c
index 7dc02ac..9a130a3 100644
--- a/src/win-usb-dev.c
+++ b/src/win-usb-dev.c
@@ -196,6 +196,11 @@ g_udev_client_initable_init(GInitable *initable, GCancellable *cancellable,
"Error initializing USB support: %s [%i]", errstr, rc);
return FALSE;
}
+#ifdef G_OS_WIN32
+#if LIBUSB_API_VERSION >= 0x01000106
+ libusb_set_option(priv->ctx, LIBUSB_OPTION_USE_USBDK);
+#endif
+#endif
/* get initial device list */
if (g_udev_client_list_devices(self, &priv->udev_list, err, __FUNCTION__) < 0) {
More information about the Spice-commits
mailing list