usb-redir: extend USB backend to support emulated devices
Redirection of emulated devices requires special approach, as usbredirhost can't be used for that (it works only with libusb devices). For emulated devices we create instance of usbredirparser that implements USB redirection protocol. In order to work with the same set of protocol capabilities that usbredirhost sets up with remote side, the parser shall: - not send its own 'hello' to the server - initialize the same capabilities that usbredirhost - receive the same 'hello' response For that we analyze 'hello' sent by USB redir parser and extract set of capabilities from it and upon receive of 'hello' response we provide it also to the parser. When libusb device is redirected via a channel, instance of usbredirhost serves it. When emulated device is redirected via a channel, instance of usbredirparser does the job. Signed-off-by:Yuri Benditovich <yuri.benditovich@daynix.com> Signed-off-by:
Frediano Ziglio <fziglio@redhat.com>
This diff is collapsed.