Add function to switch device to TCP/IP mode

Expose a function to execute "adb tcpip <port>".

PR #2827 <https://github.com/Genymobile/scrcpy/pull/2827>
This commit is contained in:
Romain Vimont
2021-11-25 22:13:39 +01:00
parent f609b406c9
commit 8543d842ea
2 changed files with 18 additions and 0 deletions

View File

@@ -41,6 +41,13 @@ bool
adb_install(struct sc_intr *intr, const char *serial, const char *local,
unsigned flags);
/**
* Execute `adb tcpip <port>`
*/
bool
adb_tcpip(struct sc_intr *intr, const char *serial, uint16_t port,
unsigned flags);
/**
* Execute `adb connect <ip_port>`
*