summaryrefslogtreecommitdiffstats
path: root/media/mtp/MtpStorage.h
diff options
context:
space:
mode:
Diffstat (limited to 'media/mtp/MtpStorage.h')
-rw-r--r--media/mtp/MtpStorage.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/media/mtp/MtpStorage.h b/media/mtp/MtpStorage.h
index b13b926..ace720b 100644
--- a/media/mtp/MtpStorage.h
+++ b/media/mtp/MtpStorage.h
@@ -28,11 +28,13 @@ class MtpStorage {
private:
MtpStorageID mStorageID;
const char* mFilePath;
- MtpDatabase* mDatabase;
uint64_t mMaxCapacity;
+ // amount of free space to leave unallocated
+ uint64_t mReserveSpace;
public:
- MtpStorage(MtpStorageID id, const char* filePath, MtpDatabase* db);
+ MtpStorage(MtpStorageID id, const char* filePath,
+ uint64_t reserveSpace);
virtual ~MtpStorage();
inline MtpStorageID getStorageID() const { return mStorageID; }