diff options
author | Mike Lockwood <mike@spruce.(none)> | 2010-05-19 10:33:39 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2010-05-19 12:38:03 -0400 |
commit | 335dd2be955607f2632eabc25045857f2cc8b674 (patch) | |
tree | 59ad1930089fecf0bd70a8a9dc03db151b5d0028 /media/mtp/MtpClient.h | |
parent | fceef46513db3507b413f604cea89e3c7f352663 (diff) | |
download | frameworks_av-335dd2be955607f2632eabc25045857f2cc8b674.zip frameworks_av-335dd2be955607f2632eabc25045857f2cc8b674.tar.gz frameworks_av-335dd2be955607f2632eabc25045857f2cc8b674.tar.bz2 |
More work on PTP host support.
Change-Id: Ifbd5bd5efa3cdb750ae1a2aae38181457554d34d
Signed-off-by: Mike Lockwood <mike@spruce.(none)>
Diffstat (limited to 'media/mtp/MtpClient.h')
-rw-r--r-- | media/mtp/MtpClient.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/media/mtp/MtpClient.h b/media/mtp/MtpClient.h index 8e2d979..b43a9e0 100644 --- a/media/mtp/MtpClient.h +++ b/media/mtp/MtpClient.h @@ -20,12 +20,13 @@ #include "MtpRequestPacket.h" #include "MtpDataPacket.h" #include "MtpResponsePacket.h" -#include "mtp.h" - -#include "MtpUtils.h" +#include "MtpTypes.h" namespace android { +class MtpDeviceInfo; +class MtpStorageInfo; + class MtpClient { private: struct usb_endpoint *mEndpointIn; @@ -47,9 +48,12 @@ public: virtual ~MtpClient(); bool openSession(); - bool getDeviceInfo(); bool closeSession(); + MtpDeviceInfo* getDeviceInfo(); + MtpStorageIDList* getStorageIDs(); + MtpStorageInfo* getStorageInfo(MtpStorageID storageID); + private: bool sendRequest(MtpOperationCode operation); bool sendData(MtpOperationCode operation); |