summaryrefslogtreecommitdiffstats
path: root/media/mtp/MtpStorage.h
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2011-02-18 09:07:14 -0500
committerMike Lockwood <lockwood@android.com>2011-02-22 13:57:23 -0800
commita849440ca96e93f700d62c6e41d48905b4d405b6 (patch)
tree4df33307f6d972f4465c542390dd7ef3606eea58 /media/mtp/MtpStorage.h
parent39a5f1bbf88c124dc24b34d718a2d95f577b5bf1 (diff)
downloadframeworks_av-a849440ca96e93f700d62c6e41d48905b4d405b6.zip
frameworks_av-a849440ca96e93f700d62c6e41d48905b4d405b6.tar.gz
frameworks_av-a849440ca96e93f700d62c6e41d48905b4d405b6.tar.bz2
MTP: Add support for dynamically adding and removing storage units
BUG: 3402847 Change-Id: I7da266061d949abcb6bb11c6faaa47b5e4a2a977
Diffstat (limited to 'media/mtp/MtpStorage.h')
-rw-r--r--media/mtp/MtpStorage.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/media/mtp/MtpStorage.h b/media/mtp/MtpStorage.h
index ace720b..858c9d3 100644
--- a/media/mtp/MtpStorage.h
+++ b/media/mtp/MtpStorage.h
@@ -17,6 +17,7 @@
#ifndef _MTP_STORAGE_H
#define _MTP_STORAGE_H
+#include "MtpTypes.h"
#include "mtp.h"
namespace android {
@@ -27,7 +28,7 @@ class MtpStorage {
private:
MtpStorageID mStorageID;
- const char* mFilePath;
+ MtpString mFilePath;
uint64_t mMaxCapacity;
// amount of free space to leave unallocated
uint64_t mReserveSpace;
@@ -44,7 +45,7 @@ public:
uint64_t getMaxCapacity();
uint64_t getFreeSpace();
const char* getDescription() const;
- inline const char* getPath() const { return mFilePath; }
+ inline const char* getPath() const { return (const char *)mFilePath; }
};
}; // namespace android