[Spice-devel] [spice-gtk v2 0/1] usb redirection: USB backend layer

Yuri Benditovich yuri.benditovich at daynix.com
Sun Sep 30 15:13:03 UTC 2018


USB backend communicates with libusb and libusbredir and
provides the API for USB redirection procedures.
All the modules communicate only with usb backend
instead of calling libusb and usbredirhost directly.
This is prerequisite of further implementation of
cd-sharing via USB redirection.

Changes from v1:
Fixes per v1 review (indentation, naming, casing)
Removal of fields and procedures of future commits
Using GError for failures
Atomic acquire/release
Checks for invalid parameters
Fixed referencing in hotplug procedure

Yuri Benditovich (1):
  usb-redirection: implementation of usb backend layer

 src/Makefile.am               |   2 +
 src/channel-usbredir-priv.h   |   9 +-
 src/channel-usbredir.c        | 232 ++++--------
 src/meson.build               |   1 +
 src/usb-backend-common.c      | 688 ++++++++++++++++++++++++++++++++++
 src/usb-backend.h             | 115 ++++++
 src/usb-device-manager-priv.h |   3 +-
 src/usb-device-manager.c      | 398 +++++++-------------
 src/usb-device-manager.h      |   1 +
 src/usbutil.c                 |  36 --
 src/usbutil.h                 |   2 -
 src/win-usb-dev.c             |  59 +--
 12 files changed, 1044 insertions(+), 502 deletions(-)
 create mode 100644 src/usb-backend-common.c
 create mode 100644 src/usb-backend.h

-- 
2.17.0



More information about the Spice-devel mailing list