diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-10-18 20:25:53 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-10-18 20:25:53 +0000 |
commit | 321a60f15643df42fdf88474513372e84d63740c (patch) | |
tree | 613a8be6f47a71a01a6765b5fa81ac078d9f6406 /adb/adb_utils.h | |
parent | d301f1bce45e986a1bdb7f0b71ed10e39e54cde6 (diff) | |
parent | 6c060cf1806c9f580f24b8458f033b8f57143c33 (diff) |
Merge changes Ic8d22016,I3e15296e,Ie275e22c
* changes:
adb: improve benchmark script a bit.
adb: extract helper for dumping a packet header.
adbd: turn on -Wthread-safety.
Diffstat (limited to 'adb/adb_utils.h')
-rw-r--r-- | adb/adb_utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/adb/adb_utils.h b/adb/adb_utils.h index f6ce8e242..ad8330210 100644 --- a/adb/adb_utils.h +++ b/adb/adb_utils.h @@ -24,6 +24,8 @@ #include <android-base/macros.h> +#include "adb.h" + int syntax_error(const char*, ...) __attribute__((__format__(__printf__, 1, 2))); void close_stdin(); @@ -42,6 +44,8 @@ bool mkdirs(const std::string& path); std::string escape_arg(const std::string& s); std::string dump_hex(const void* ptr, size_t byte_count); +std::string dump_header(const amessage* msg); +std::string dump_packet(const char* name, const char* func, const apacket* p); std::string perror_str(const char* msg); |