This series of patches includes usb backend implementation which concentrates all the communication with libusb and usbredirhost and provides more abstract API to usb redirection modules (usb device manager and usb redirection channel). It is prerequisite of extending usb redirection functionality (as cd sharing via emulation of cd drive) Yuri Benditovich (2): usb-redirection: introduce usb backend layer usb-redirection: use usb backend for usb redirection src/Makefile.am | 2 + src/channel-usbredir-priv.h | 9 +- src/channel-usbredir.c | 271 +++++--------- src/meson.build | 1 + src/usb-backend-common.c | 809 ++++++++++++++++++++++++++++++++++++++++++ src/usb-backend.h | 97 +++++ src/usb-device-manager-priv.h | 5 +- src/usb-device-manager.c | 407 ++++++++------------- src/usb-device-manager.h | 29 +- src/usbutil.c | 36 -- src/usbutil.h | 2 - src/win-usb-dev.c | 59 ++- 12 files changed, 1207 insertions(+), 520 deletions(-) create mode 100644 src/usb-backend-common.c create mode 100644 src/usb-backend.h -- 2.9.4 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel