Simplify adb_execute_p()

Only pass the stdout pipe as parameter, scrcpy never writes to stdin or
reads from stderr of an adb process.
This commit is contained in:
Romain Vimont
2021-11-17 21:53:11 +01:00
parent 0426ae885c
commit 13fd693b50
2 changed files with 6 additions and 6 deletions

View File

@@ -12,8 +12,8 @@ sc_pid
adb_execute(const char *serial, const char *const adb_cmd[], size_t len);
sc_pid
adb_execute_p(const char *serial, const char *const adb_cmd[],
size_t len, sc_pipe *pin, sc_pipe *pout, sc_pipe *perr);
adb_execute_p(const char *serial, const char *const adb_cmd[], size_t len,
sc_pipe *pout);
sc_pid
adb_forward(const char *serial, uint16_t local_port,