Remove Windows-specific part of hotplug detection from
usb-device-manager and win-usb-dev and place it into
USB backend module. Connect the hotplug/unplug detection
in Windows to the same callbacks already used in Linux.
This removes significant part of Windows-specific code
and simpifies things.
N
The delete in error flow was missing.
Signed-off-by: Yuri Benditovich
---
src/usb-device-manager.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/usb-device-manager.c b/src/usb-device-manager.c
index 857d057..7105ff1 100644
--- a/src/usb-device-manager.c
+++ b/src/usb-device-manager.c
@
Previous commit ca641a5b92 uses libusb_interrupt_event_handler
which requires newer version of libusb.
Signed-off-by: Yuri Benditovich
---
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index 32561ee..54160f9 100644
--- a/meson.build
+++
This series is dedicated to unification of Linux Windows flows
in usb-device-manager. It moves differences related to libusb
to USB backend module and simplifies implementation of procedure
related to USB redirection.
Yuri Benditovich (5):
build: require minimal libusb version 1.0.21
usb-redir
Before this commit:
usb-device-manager starts thread for handling libusb events.
On Linux - from the beginning (as it is needed for hotplug
callbacks)
On Windows - starts it on first redirection and stops when
there are no redirections (it can't keep the thread when
there are no redirecti
In case of possible error the procedure of hotplug
registration does not return error information, just
issues warning to the stderr, so the reason of the problem,
if any, is not visible. Current commit adds GError parameter
to the procedure to return the error details conventionally.
Signed-off-b