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

Dmitry Fleytman dmitry at daynix.com
Sun Aug 16 04:38:42 PDT 2015


> On Aug 11, 2015, at 14:24 PM, Christophe Fergeau <cfergeau at redhat.com> wrote:
> 
> 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.

Fixed, thanks!


> 
> Christophe
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel



More information about the Spice-devel mailing list