[Spice-devel] [spice-gtk Win32 PATCH 0/7] usb-redir support for Windows (mingw32)

Uri Lublin uril at redhat.com
Mon May 7 06:15:32 PDT 2012


Hello,

This patchset enables usb-redir support in spice-gtk running on Windows.

Patches 1 and 2 fix compilation with mingw32 (e.g. no gudev)

Patch 3 adds GUdev like implementation for windows:
  - listening for USB device plug/unplug evevnts.
  - notifying registerees of such events.
  - provide similar api for minimal changes in usb-device-manager.

Patch 4 adds the capability to install a libusb driver dynamically
  - Assuming usbclerk is installed on the client machine.
  - Note that current implementation requires a rescan of USB devices

Patch 5 is a reminder to us that we still have stuff to fix
  - Prevents crashes.

Patch 6 adds usb-redir support in spicy
  - Add code to register for Windows USB events.

Patch 7 can be merged into Patch 3 if people want.


Review and comments are most welcome.

Thanks,
    Uri

(modified to keep order as detailed above)
Uri Lublin (2):
  Move "err" variable definition to beginning of the function
  configure.ac: add --enable_gudev

Arnon Gilboa (1):
  Windows: add win-usb-dev.[ch]: implement GUdevDevice & GUdevClient

Uri Lublin (4):
  Windows: Install libusb driver dynamically when usbredir'ing a USB device
  Windows usb: Comment out some memory cleanups not working on Windows
  Windows: spicy: listen to USB device plug/unplug events
  win-usb-dev: replace sprintf with snprintf

 configure.ac                 |   29 ++++-
 gtk/Makefile.am              |   25 +++
 gtk/channel-usbredir.c       |    4 +-
 gtk/map-file                 |    1 +
 gtk/spicy.c                  |   15 ++
 gtk/usb-device-manager.c     |   53 +++++++-
 gtk/usb-device-manager.h     |    4 +
 gtk/usbclerk.h               |   35 +++++
 gtk/usbutil.c                |    1 +
 gtk/win-usb-dev.c            |  342 ++++++++++++++++++++++++++++++++++++++++++
 gtk/win-usb-dev.h            |   95 ++++++++++++
 gtk/win-usb-driver-install.c |  221 +++++++++++++++++++++++++++
 gtk/win-usb-driver-install.h |   47 ++++++
 13 files changed, 869 insertions(+), 3 deletions(-)
 create mode 100644 gtk/usbclerk.h
 create mode 100644 gtk/win-usb-dev.c
 create mode 100644 gtk/win-usb-dev.h
 create mode 100644 gtk/win-usb-driver-install.c
 create mode 100644 gtk/win-usb-driver-install.h

-- 
1.7.7.6



More information about the Spice-devel mailing list