From f7454622eaac287d20ab43013d7015fe42b894f8 Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Thu, 9 Dec 2010 18:34:18 -0800 Subject: 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 --- media/mtp/MtpPacket.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'media/mtp/MtpPacket.h') 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); -- cgit v1.1