summaryrefslogtreecommitdiffstats
path: root/media/mtp/MtpDataPacket.h
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2011-04-24 18:40:17 -0700
committerMike Lockwood <lockwood@android.com>2011-04-25 17:40:33 -0700
commit64000788211f4c7e78c80a4a155390d1316e1176 (patch)
tree5cd67cc35f9df8ffcef27438430c6a087adfa69c /media/mtp/MtpDataPacket.h
parentc0502468a29aa2f2b3457e0e08c4a5650a70488d (diff)
downloadframeworks_av-64000788211f4c7e78c80a4a155390d1316e1176.zip
frameworks_av-64000788211f4c7e78c80a4a155390d1316e1176.tar.gz
frameworks_av-64000788211f4c7e78c80a4a155390d1316e1176.tar.bz2
MTP: Implement GetThumb command
This allows the PC to access thumbnails in JPEG files over MTP/PTP Bug: 3219495 Change-Id: I4964f8b4826dffb7f0f77464ec91bd2e97a2f007 Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'media/mtp/MtpDataPacket.h')
-rw-r--r--media/mtp/MtpDataPacket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/mtp/MtpDataPacket.h b/media/mtp/MtpDataPacket.h
index 577cea1..8a08948 100644
--- a/media/mtp/MtpDataPacket.h
+++ b/media/mtp/MtpDataPacket.h
@@ -100,6 +100,7 @@ public:
// write our data to the given file descriptor
int write(int fd);
int writeDataHeader(int fd, uint32_t length);
+ int writeData(int fd, void* data, uint32_t length);
#endif
#ifdef MTP_HOST