scrcpy/app/src/usb
martin f. krafft b3f5dfe1de Add specific exit code for device disconnection
Modify the return logic such that exit code 1 is used when the initial
connection fails, but if a session is established, and then the device
disconnects, exit code 2 is emitted.

Fixes #3083 <https://github.com/Genymobile/scrcpy/issues/3083>
PR #3085 <https://github.com/Genymobile/scrcpy/pull/3085>
Signed-off-by: martin f. krafft <madduck@madduck.net>
Signed-off-by: Romain Vimont <rom@rom1v.com>
2022-03-06 22:19:46 +01:00
..
aoa_hid.c Report USB device disconnection when detected 2022-02-20 17:38:14 +01:00
aoa_hid.h Move sc_usb out of sc_aoa 2022-01-27 23:35:59 +01:00
hid_keyboard.c Improve HID event push error message 2022-02-24 23:28:20 +01:00
hid_keyboard.h Move AOA/HID code to usb/ 2022-01-27 23:35:34 +01:00
hid_mouse.c Improve HID event push error message 2022-02-24 23:28:20 +01:00
hid_mouse.h Move AOA/HID code to usb/ 2022-01-27 23:35:34 +01:00
scrcpy_otg.c Add specific exit code for device disconnection 2022-03-06 22:19:46 +01:00
scrcpy_otg.h Add specific exit code for device disconnection 2022-03-06 22:19:46 +01:00
screen_otg.c Work around mouse capture SDL bug on macOS 2022-02-20 17:28:02 +01:00
screen_otg.h Do not duplicate relative mouse mode state 2022-02-10 08:50:18 +01:00
usb.c Add libusb error log 2022-02-24 23:25:02 +01:00
usb.h Report USB device disconnection when detected 2022-02-20 17:38:14 +01:00