[Spice-devel] [spice-gtk v2 0/3] Implementation of USB backend layer

Yuri Benditovich yuri.benditovich at daynix.com
Wed Jul 10 09:23:42 UTC 2019


This layer communicates with libusb and libusbredir and
provides the API for all the operations related to USB
redirection. All other modules of spice-gtk 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: cosmetic changes per v1 review
Added a rebased patch (3) from Frediano Ziglio
For the increment see
https://gitlab.freedesktop.org/yuri_benditovich/spice-gtk/commits/backend2-increment


Yuri Benditovich (3):
  usb-redir: isolate usage of libusb and usbredirhost
  usb-redirection: do not duplicate USB device properties
  usb-device-manager: Define _SpiceUsbDevice instead of
    SpiceUsbDeviceInfo

 src/Makefile.am               |   2 +
 src/channel-usbredir-priv.h   |  12 +-
 src/channel-usbredir.c        | 236 ++----------
 src/meson.build               |   2 +
 src/usb-backend.c             | 657 ++++++++++++++++++++++++++++++++++
 src/usb-backend.h             | 102 ++++++
 src/usb-device-manager-priv.h |   1 -
 src/usb-device-manager.c      | 397 +++++++-------------
 src/win-usb-dev.c             | 103 ++----
 src/win-usb-dev.h             |   5 +-
 10 files changed, 969 insertions(+), 548 deletions(-)
 create mode 100644 src/usb-backend.c
 create mode 100644 src/usb-backend.h

-- 
2.17.1



More information about the Spice-devel mailing list