b3f5dfe1de
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>
12 lines
180 B
C
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
|