diff options
author | Josh Gao <jmgao@google.com> | 2016-01-31 19:12:26 -0800 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2016-01-31 19:12:26 -0800 |
commit | f3f6a1d0d4279930be1434fa66cc0b3fbbb850f0 (patch) | |
tree | 6342d301b5ab1b558486a293b2965d6174c0169d /adb/adb_client.h | |
parent | 1c92d83cdaf78b4f9ef9069f7774851e77b327e7 (diff) | |
download | system_core-f3f6a1d0d4279930be1434fa66cc0b3fbbb850f0.tar.gz system_core-f3f6a1d0d4279930be1434fa66cc0b3fbbb850f0.tar.bz2 system_core-f3f6a1d0d4279930be1434fa66cc0b3fbbb850f0.zip |
adb: add adb_get_feature_set.
Extract a feature set getter function from commandline.cpp.
Change-Id: I30a3eb0b060a88379e29be16264637816e378978
Diffstat (limited to 'adb/adb_client.h')
-rw-r--r-- | adb/adb_client.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/adb/adb_client.h b/adb/adb_client.h index 5de0638ef..112c13a4e 100644 --- a/adb/adb_client.h +++ b/adb/adb_client.h @@ -18,6 +18,7 @@ #define _ADB_CLIENT_H_ #include "adb.h" +#include "transport.h" #include <string> @@ -52,4 +53,10 @@ int adb_send_emulator_command(int argc, const char** argv, const char* serial); // event of OKAY, false in the event of FAIL or protocol error. bool adb_status(int fd, std::string* error); +// Create a host command corresponding to selected transport type/serial. +std::string format_host_command(const char* command, TransportType type, const char* serial); + +// Get the feature set of the current preferred transport. +bool adb_get_feature_set(FeatureSet* feature_set, std::string* error); + #endif |