summaryrefslogtreecommitdiff
path: root/transport.h
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2016-10-27 14:01:08 -0700
committerJosh Gao <jmgao@google.com>2016-10-27 17:13:23 -0700
commit90e1df2198eb4ccc7a91968c47962ffe6ab2c84e (patch)
tree2931ef88240b5514005e95acb2b4eca0455c5bff /transport.h
parent7c2e609e6ef3c4459fe24b6325fecb0dddb953df (diff)
downloadadb-90e1df2198eb4ccc7a91968c47962ffe6ab2c84e.tar.gz
adb: add `adb reconnect offline` to reconnect offline devices.
Add a command to reconnect offline/unauthorized devices, mainly for use with the inotify-monitoring of vendor key directories added by 2e671202. Bug: http://b/29273531 Test: manually tested with a sailfish + copying vendor keys Change-Id: If34cccee4ae553ada65d128b57d03cba8c0d7c46
Diffstat (limited to 'transport.h')
-rw-r--r--transport.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/transport.h b/transport.h
index 621516c..b2df838 100644
--- a/transport.h
+++ b/transport.h
@@ -20,6 +20,7 @@
#include <sys/types.h>
#include <deque>
+#include <functional>
#include <list>
#include <memory>
#include <string>
@@ -199,8 +200,8 @@ void unregister_usb_transport(usb_handle* usb);
int check_header(apacket* p, atransport* t);
int check_data(apacket* p);
-/* for MacOS X cleanup */
void close_usb_devices();
+void close_usb_devices(std::function<bool(const atransport*)> predicate);
void send_packet(apacket* p, atransport* t);