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>
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 @@
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);