diff options
author | Mike Lockwood <lockwood@android.com> | 2010-12-09 18:34:18 -0800 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2010-12-09 18:34:18 -0800 |
commit | f7454622eaac287d20ab43013d7015fe42b894f8 (patch) | |
tree | 1bbc63dbaf849ed5226194e933f2de3c9bdb22e0 /media/mtp/MtpPacket.h | |
parent | 424c6cbfa75da5f4f889ab6517dfee4dd024ba2d (diff) | |
download | frameworks_av-f7454622eaac287d20ab43013d7015fe42b894f8.zip frameworks_av-f7454622eaac287d20ab43013d7015fe42b894f8.tar.gz frameworks_av-f7454622eaac287d20ab43013d7015fe42b894f8.tar.bz2 |
MTP host: Handle receiving a response packet instead of data packet.
This will happen if the device needs to report an error rather than returning the data.
Change-Id: I477512b3676c2f0518a85a4135832ed4475fbc2d
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'media/mtp/MtpPacket.h')
-rw-r--r-- | media/mtp/MtpPacket.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/media/mtp/MtpPacket.h b/media/mtp/MtpPacket.h index 9c8d6da..73963a3 100644 --- a/media/mtp/MtpPacket.h +++ b/media/mtp/MtpPacket.h @@ -43,10 +43,13 @@ public: void allocate(int length); void dump(); + void copyFrom(const MtpPacket& src); uint16_t getContainerCode() const; void setContainerCode(uint16_t code); + uint16_t getContainerType() const; + MtpTransactionID getTransactionID() const; void setTransactionID(MtpTransactionID id); |