Build adb argv statically

Now that providing a serial is mandatory for adb commands where it is
relevant, the whole argv array may be built statically, without
allocations at runtime.
This commit is contained in:
Romain Vimont
2022-02-05 10:07:13 +01:00
parent 5e2bfccab4
commit 386cf7d7ac
3 changed files with 58 additions and 66 deletions

View File

@@ -18,8 +18,7 @@ const char *
sc_adb_get_executable(void);
sc_pid
sc_adb_execute(const char *serial, const char *const adb_cmd[], size_t len,
unsigned flags);
sc_adb_execute(const char *const argv[], unsigned flags);
bool
sc_adb_forward(struct sc_intr *intr, const char *serial, uint16_t local_port,