scrcpy/app/src/usb/scrcpy_otg.h
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

12 lines
180 B
C

#ifndef SCRCPY_OTG_H
#define SCRCPY_OTG_H
#include "common.h"
#include "options.h"
#include "scrcpy.h"
enum scrcpy_exit_code
scrcpy_otg(struct scrcpy_options *options);
#endif