[Spice-devel] [PATCH] win-usb-dev: Set UsbDk backend on libusb 1.0.22

2018-08-13 Thread Jorge Olmos
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. --- src/win-usb-dev.c |

Re: [Spice-devel] [PATCH] win-usb-dev: Set UsbDk backend on libusb 1.0.22

2018-08-14 Thread Jorge Olmos
Hi, On Mon, 2018-08-13 at 17:25 +0200, Christophe Fergeau wrote: > Hey, > > On Mon, Aug 13, 2018 at 03:45:06PM +0200, Jorge Olmos wrote: > > This patch configures libusb in the context used in win-usb-dev, > > with > > the same backend as the context initia

[Spice-devel] [PATCH] Avoid passing libusb functions as callbacks

2018-08-17 Thread jorge . olmos
From: Jorge Olmos When building spice-gtk for windows: - libusb uses __stdcall calling convention when compiled for win32. It does not include an option to be compiled with __cdecl calling convention. Directly calling libusb functions works fine. But it is a problem when its functions are passed

Re: [Spice-devel] [PATCH] Avoid passing libusb functions as callbacks

2018-08-17 Thread Jorge Olmos
Hi, On Fri, 2018-08-17 at 15:24 +0200, Victor Toso wrote: > Hi, > > On Fri, Aug 17, 2018 at 03:12:35PM +0200, jorge.ol...@flexvdi.com > wrote: > > From: Jorge Olmos > > > > When building spice-gtk for windows: > > - libusb uses __stdcall calling convention