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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user