aboutsummaryrefslogtreecommitdiff
path: root/adb.h
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2018-02-01 13:17:50 -0800
committerJosh Gao <jmgao@google.com>2018-02-06 12:59:06 -0800
commita7d9d71e8c66bd19cb908b48b5dac31c9587dd31 (patch)
treedc72b7032b6e0923b6201273caaf64a5557410f3 /adb.h
parentb14756a7754dbb46d6f7d0a7814b0bcc61741e67 (diff)
downloadadb-a7d9d71e8c66bd19cb908b48b5dac31c9587dd31.tar.gz
adb: switch asocket::enqueue to std::string.
Switch asocket over to taking a std::string instead of apacket* for data. This allows us to remove asocket specific fields from apacket*. Test: python test_device.py with x86_64 emulator, walleye Test: adb_test on host Change-Id: I9d157ff331a75ba49a54fdd4194e3f6cdff722f4
Diffstat (limited to 'adb.h')
-rw-r--r--adb.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/adb.h b/adb.h
index b5d6bcbf..c9c635a8 100644
--- a/adb.h
+++ b/adb.h
@@ -73,11 +73,6 @@ struct amessage {
};
struct apacket {
- apacket* next;
-
- size_t len;
- char* ptr;
-
amessage msg;
char data[MAX_PAYLOAD];
};