Skip to content
Snippets Groups Projects
Commit 68984d37 authored by Yuri Benditovich's avatar Yuri Benditovich
Browse files

usb-redir: isolate usage of libusb and usbredirhost


As a step toward possibility to present emulated USB devices
to the guest, we remove the knowledge about libusb and
usbredirhost (which depends on libusb) from all the modules
and concentrate it in one (usb backend) which presents
abstract USB objects and internal API to all other modules.
Internal API presents following types of objects:
* SpiceUsbBackend: supports enumeration of local USB devices
  (Windows), hot plug/unplug callbacks (Linux) and events
  handling. It wraps libusb_context
* SpiceUsbBackendDevice: represent local USB device, provides
  access to cached properties of the device, wraps libusb_device
* SpiceUsbBackendChannel: accumulates redirection functionality,
  wraps usbredirhost

Signed-off-by: default avatarYuri Benditovich <yuri.benditovich@daynix.com>
parent 82b516a9
No related branches found
Tags mesa-18.2.0-rc2
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment