[Spice-devel] [PATCH v3 05/13] UsbDeviceManager and redirect channel: spawn a different thread for connect device flow

Christophe Fergeau cfergeau at redhat.com
Tue Aug 11 04:24:24 PDT 2015


On Mon, Aug 03, 2015 at 04:10:45PM +0300, Kirill Moizik wrote:
> @@ -1575,8 +1585,20 @@ void spice_usb_device_manager_connect_device_async(SpiceUsbDeviceManager *self,
>                                               GAsyncReadyCallback callback,
>                                               gpointer user_data)
>  {
> +    g_return_if_fail(SPICE_IS_USB_DEVICE_MANAGER(self));
> +#ifdef USE_USBREDIR
> +    g_return_if_fail(self->priv->redirecting == FALSE);
> +    g_object_set(self,"redirecting", TRUE, NULL);
> +#ifndef USE_LIBUSB_HOTPLUG
> +    spice_g_udev_set_redirecting(TRUE);
> +#endif

Fwiw, this is going to break on linux when libusb hotplug is not in
use.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20150811/7c3e40dc/attachment.sig>


More information about the Spice-devel mailing list