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

Frediano Ziglio fziglio at redhat.com
Wed Jul 10 09:49:21 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 v2: rebased on master

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/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 +-
 9 files changed, 967 insertions(+), 548 deletions(-)
 create mode 100644 src/usb-backend.c
 create mode 100644 src/usb-backend.h

-- 
2.20.1



More information about the Spice-devel mailing list