summaryrefslogtreecommitdiffstats
path: root/media/mtp/MtpStorage.h
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2011-04-05 10:21:27 -0400
committerMike Lockwood <lockwood@android.com>2011-05-03 21:03:56 -0400
commit0241cacb85dbac20b28036bbb8025dfd513e3753 (patch)
treedecad46d9168915eacfb06b54a6e16b7f7ff4e2a /media/mtp/MtpStorage.h
parentae23aaee377578d9601db8d0acff66a4dd40920a (diff)
downloadframeworks_av-0241cacb85dbac20b28036bbb8025dfd513e3753.zip
frameworks_av-0241cacb85dbac20b28036bbb8025dfd513e3753.tar.gz
frameworks_av-0241cacb85dbac20b28036bbb8025dfd513e3753.tar.bz2
DO NOT MERGE 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: Ide6d47bd9aa1698ed2a13d695613e03f2a9b29e3 Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'media/mtp/MtpStorage.h')
-rw-r--r--media/mtp/MtpStorage.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/media/mtp/MtpStorage.h b/media/mtp/MtpStorage.h
index 858c9d3..d6ad25f 100644
--- a/media/mtp/MtpStorage.h
+++ b/media/mtp/MtpStorage.h
@@ -29,13 +29,14 @@ class MtpStorage {
private:
MtpStorageID mStorageID;
MtpString mFilePath;
+ MtpString mDescription;
uint64_t mMaxCapacity;
// amount of free space to leave unallocated
uint64_t mReserveSpace;
public:
MtpStorage(MtpStorageID id, const char* filePath,
- uint64_t reserveSpace);
+ const char* description, uint64_t reserveSpace);
virtual ~MtpStorage();
inline MtpStorageID getStorageID() const { return mStorageID; }