I am working on removal of all libusb dependency in win-usb-dev, which cleanups this mess.

Hans de Goede wrote:
diff --git a/gtk/win-usb-dev.c b/gtk/win-usb-dev.c
new file mode 100644
index 0000000..7503c41
--- /dev/null
+++ b/gtk/win-usb-dev.c

<snip>

+    rc = libusb_init(NULL);
+    g_return_val_if_fail(rc>= 0, FALSE);

Ugh using a global libusb context is BAD, remember spice-gtk is a library, so in the long run it could get linked into a program which is also using libusb in some other way.

This is acceptable for now, but it really should be high on the TODO list of things
to fix. OTOH we might get hotplug support in libusbx first :)

Regards,

Hans
_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel

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

Reply via email to