<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class="">
<br class=""><div><blockquote type="cite" class=""><div class="">On 22 Sep 2015, at 18:52 PM, Christophe Fergeau <<a href="mailto:cfergeau@redhat.com" class="">cfergeau@redhat.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">On Sun, Aug 16, 2015 at 03:35:42PM +0300, Dmitry Fleytman wrote:</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">From: Kirill Moizik <<a href="mailto:kmoizik@redhat.com" class="">kmoizik@redhat.com</a>><br class=""><br class="">Signed-off-by: Kirill Moizik <<a href="mailto:kmoizik@redhat.com" class="">kmoizik@redhat.com</a>><br class="">Signed-off-by: Dmitry Fleytman <<a href="mailto:dfleytma@redhat.com" class="">dfleytma@redhat.com</a>><br class="">---<br class="">src/usb-device-manager.c | 58 +++++++++++++++++++++++++++---------------------<br class="">1 file changed, 33 insertions(+), 25 deletions(-)<br class=""><br class="">diff --git a/src/usb-device-manager.c b/src/usb-device-manager.c<br class="">index e7da42e..58e4042 100644<br class="">--- a/src/usb-device-manager.c<br class="">+++ b/src/usb-device-manager.c<br class="">@@ -1201,6 +1201,37 @@ static void spice_usb_device_manager_drv_uninstall_cb(GObject *gobject,<br class=""><br class="">#endif<br class=""><br class="">+#if defined(USE_USBREDIR) && defined(G_OS_WIN32)<br class="">+void spice_usb_device_manager_driver_uninstall_async(SpiceUsbDeviceManager *self,<br class="">+ SpiceUsbDevice *device)<br class="">+{<br class="">+<br class="">+ SpiceWinUsbDriver *installer;<br class="">+ UsbInstallCbInfo *cbinfo;<br class="">+ guint8 state;<br class="">+<br class="">+ g_warn_if_fail(device != NULL);<br class="">+ g_return_if_fail(self->priv->installer);<br class="">+<br class="">+ state = spice_usb_device_get_state(device);<br class="">+ if ((state != SPICE_USB_DEVICE_STATE_INSTALLED) &&<br class="">+ (state != SPICE_USB_DEVICE_STATE_CONNECTED)) {<br class="">+ return;<br class="">+ }<br class="">+<br class="">+ spice_usb_device_set_state(device, SPICE_USB_DEVICE_STATE_UNINSTALLING);<br class="">+<br class="">+ installer = self->priv->installer;<br class="">+ cbinfo = g_new0(UsbInstallCbInfo, 1);<br class="">+ cbinfo->manager = self;<br class="">+ cbinfo->device = spice_usb_device_ref(device);<br class="">+ cbinfo->installer = installer;<br class="">+ spice_win_usb_driver_uninstall_async (installer, device, NULL,<br class="">+ spice_usb_device_manager_drv_uninstall_cb,<br class="">+ cbinfo);<br class="">+}<br class="">+#endif<br class="">+<br class="">/* ------------------------------------------------------------------ */<br class="">/* private api */<br class=""><br class="">@@ -1588,31 +1619,8 @@ void spice_usb_device_manager_disconnect_device(SpiceUsbDeviceManager *self,<br class=""> spice_usbredir_channel_disconnect_device(channel);<br class=""><br class="">#ifdef G_OS_WIN32<br class="">- if (self->priv->use_usbclerk) {<br class="">- SpiceWinUsbDriver *installer;<br class="">- UsbInstallCbInfo *cbinfo;<br class="">- guint8 state;<br class="">-<br class="">- g_warn_if_fail(device != NULL);<br class="">- g_return_if_fail(self->priv->installer);<br class="">-<br class="">- state = spice_usb_device_get_state(device);<br class="">- if ((state != SPICE_USB_DEVICE_STATE_INSTALLED) &&<br class="">- (state != SPICE_USB_DEVICE_STATE_CONNECTED)) {<br class="">- return;<br class="">- }<br class="">-<br class="">- spice_usb_device_set_state(device, SPICE_USB_DEVICE_STATE_UNINSTALLING);<br class="">-<br class="">- installer = self->priv->installer;<br class="">- cbinfo = g_new0(UsbInstallCbInfo, 1);<br class="">- cbinfo->manager = self;<br class="">- cbinfo->device = spice_usb_device_ref(device);<br class="">- cbinfo->installer = installer;<br class="">-<br class="">- spice_win_usb_driver_uninstall_async (installer, device, NULL,<br class="">- spice_usb_device_manager_drv_uninstall_cb,<br class="">- cbinfo);<br class="">+ if (self->priv->use_usbclerk) {<br class="">+ spice_usb_device_manager_driver_uninstall_async(self,device);<br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Missing space before ‘device'</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""></div></blockquote><div><br class=""></div><div><br class=""></div><div>Fixed, thanks.</div><br class=""><blockquote type="cite" class=""><div class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""> }<br class="">#endif<br class=""><br class="">--<span class="Apple-converted-space"> </span><br class="">2.4.3<br class=""><br class="">_______________________________________________<br class="">Spice-devel mailing list<br class=""><a href="mailto:Spice-devel@lists.freedesktop.org" class="">Spice-devel@lists.freedesktop.org</a><br class=""><a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" class="">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a></blockquote></div></blockquote></div><br class=""></body></html>