summaryrefslogtreecommitdiffstats
path: root/adb/adb.h
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-05-24 10:44:35 -0400
committerMike Lockwood <lockwood@android.com>2010-06-02 11:31:26 -0400
commitcbbe79add1410b53ec65936cfb1b74cac68467f0 (patch)
tree4b7c7dc05cbd7026be3a4414eedf0ae6e7924ca4 /adb/adb.h
parent67d5358e2a870f9e9447517bfa49bf5c6b410a50 (diff)
downloadcore-cbbe79add1410b53ec65936cfb1b74cac68467f0.tar.gz
core-cbbe79add1410b53ec65936cfb1b74cac68467f0.tar.bz2
core-cbbe79add1410b53ec65936cfb1b74cac68467f0.zip
adb connect and disconnect improvements:
Port number is now optional. Will use default port 5555 if not specified. "adb disconnect" with no additional arguments will disconnect all TCP devices. Change-Id: I7fc26528ed85e66a73b8f6254cea7bf83d98109f Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'adb/adb.h')
-rw-r--r--adb/adb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/adb/adb.h b/adb/adb.h
index 292e41592..3d2a77bba 100644
--- a/adb/adb.h
+++ b/adb/adb.h
@@ -275,8 +275,9 @@ void close_usb_devices();
/* cause new transports to be init'd and added to the list */
void register_socket_transport(int s, const char *serial, int port, int local);
-/* this should only be used for the "adb disconnect" command */
+/* these should only be used for the "adb disconnect" command */
void unregister_transport(atransport *t);
+void unregister_all_tcp_transports();
void register_usb_transport(usb_handle *h, const char *serial, unsigned writeable);