diff options
author | Josh Gao <jmgao@google.com> | 2020-03-26 19:33:25 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2020-04-02 17:11:07 -0700 |
commit | bfcd8ffb4cc435775ef08c81b8c9b282e2d2c9d5 (patch) | |
tree | ffb9a0c9875742af2184f74da9f9308bb59a8eb2 /file_sync_protocol.h | |
parent | c79bc08eb4291e3b09f2c07788822871e476bbcd (diff) | |
download | adb-bfcd8ffb4cc435775ef08c81b8c9b282e2d2c9d5.tar.gz |
adb: add interfaces for Encoder/Decoder.
More groundwork to support more compression algorithms.
Bug: https://issuetracker.google.com/150827486
Test: python3 -m unittest test_device.FileOperationsTest{Uncompressed,Brotli}
Change-Id: I638493083b83e3f6c6854b631471e9d6b50bd79f
Diffstat (limited to 'file_sync_protocol.h')
-rw-r--r-- | file_sync_protocol.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/file_sync_protocol.h b/file_sync_protocol.h index fd9a5169..70425f7a 100644 --- a/file_sync_protocol.h +++ b/file_sync_protocol.h @@ -94,6 +94,12 @@ enum SyncFlag : uint32_t { kSyncFlagBrotli = 1, }; +enum class CompressionType { + None, + Any, + Brotli, +}; + // send_v1 sent the path in a buffer, followed by a comma and the mode as a string. // send_v2 sends just the path in the first request, and then sends another syncmsg (with the // same ID!) with details. |