diff options
author | Mike Lockwood <lockwood@android.com> | 2011-04-05 10:21:27 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2011-04-05 15:19:16 -0400 |
commit | 30adaaf9d6fd944c8f6a2c7a06774b019878c368 (patch) | |
tree | 45569049e40a03e0e725f472bcec6170d106ecb2 /media/mtp/MtpServer.h | |
parent | 7fb4b427d5fca79c09d69b212ddca41539c215a2 (diff) | |
download | frameworks_av-30adaaf9d6fd944c8f6a2c7a06774b019878c368.zip frameworks_av-30adaaf9d6fd944c8f6a2c7a06774b019878c368.tar.gz frameworks_av-30adaaf9d6fd944c8f6a2c7a06774b019878c368.tar.bz2 |
MTP and media provider support for multiple storage devices:
- MTP support for multiple storage units
- Add storage_id column to media database for MTP storage ID
- Add framework resource for defining mount points and user visible descriptions
for multiple volumes
- Clean up locking in MtpServer JNI code
Change-Id: Iffb66ed156ef5bc80b14228af78fbacee7734360
Diffstat (limited to 'media/mtp/MtpServer.h')
-rw-r--r-- | media/mtp/MtpServer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/media/mtp/MtpServer.h b/media/mtp/MtpServer.h index 1efa715..fa729a8 100644 --- a/media/mtp/MtpServer.h +++ b/media/mtp/MtpServer.h @@ -70,6 +70,9 @@ public: int fileGroup, int filePerm, int directoryPerm); virtual ~MtpServer(); + MtpStorage* getStorage(MtpStorageID id); + inline bool hasStorage() { return mStorages.size() > 0; } + bool hasStorage(MtpStorageID id); void addStorage(MtpStorage* storage); void removeStorage(MtpStorage* storage); @@ -79,9 +82,6 @@ public: void sendObjectRemoved(MtpObjectHandle handle); private: - MtpStorage* getStorage(MtpStorageID id); - inline bool hasStorage() { return mStorages.size() > 0; } - bool hasStorage(MtpStorageID id); void sendStoreAdded(MtpStorageID id); void sendStoreRemoved(MtpStorageID id); void sendEvent(MtpEventCode code, uint32_t param1); |