diff options
author | Josh Gao <jmgao@google.com> | 2018-01-28 20:32:46 -0800 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2018-01-30 15:22:41 -0800 |
commit | 395b86a8a087416969f76b62915cccab2e5b5f7d (patch) | |
tree | 1aa553bbe4387160c803e2991f56413a07f61d98 /adb.h | |
parent | 30c4266dba6be6e5833f3d0073cc9408349c1e9a (diff) | |
download | adb-395b86a8a087416969f76b62915cccab2e5b5f7d.tar.gz |
adb: extract atransport's connection interface.
As step one of refactoring atransport to separate out protocol handling
from its underlying connection, extract atransport's existing
hand-rolled connection vtable out to its own abstract interface.
This should not change behavior except in one case: emulators are
now treated as TCP devices for the purposes of `adb disconnect`.
Test: python test_device.py, with walleye over USB + TCP
Test: manually connecting and disconnecting devices/emulators
Change-Id: I877b8027e567cc6a7461749432b49f6cb2c2f0d7
Diffstat (limited to 'adb.h')
-rw-r--r-- | adb.h | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -136,9 +136,6 @@ int launch_server(const std::string& socket_spec); int adb_server_main(int is_daemon, const std::string& socket_spec, int ack_reply_fd); /* initialize a transport object's func pointers and state */ -#if ADB_HOST -int get_available_local_transport_index(); -#endif int init_socket_transport(atransport* t, int s, int port, int local); void init_usb_transport(atransport* t, usb_handle* usb); |