Add adb flag to disable execution error logs

In addition to disable stdout and stderr of the child process, add a
flag to disable the error log printed by scrcpy if the command failed.

This will we useful for commands which are expected to fail in some
cases (like "adb disconnect" if the device is not connected).

PR #2827 <https://github.com/Genymobile/scrcpy/pull/2827>
This commit is contained in:
Romain Vimont
2021-11-25 22:05:38 +01:00
parent e3d4aa8c5d
commit e6e6f865a0
2 changed files with 25 additions and 16 deletions

View File

@@ -10,6 +10,7 @@
#define SC_ADB_NO_STDOUT (1 << 0)
#define SC_ADB_NO_STDERR (1 << 1)
#define SC_ADB_NO_LOGERR (1 << 2)
sc_pid
adb_execute(const char *serial, const char *const adb_cmd[], size_t len,