summaryrefslogtreecommitdiffstats
path: root/mtp/twrpMtp.cpp
diff options
context:
space:
mode:
authorbigbiff <bigbiff@teamw.in>2014-11-27 02:36:07 +0100
committerDees Troy <dees_troy@teamw.in>2014-12-04 17:32:27 +0100
commit7cb4c3322b3a282e63e77b0d2205fd2e51b8b932 (patch)
tree7ff7761604c2f6d82b444a66205126f8d81856e5 /mtp/twrpMtp.cpp
parentReduce libs needed for decrypt and clean up old decypt files (diff)
downloadandroid_bootable_recovery-7cb4c3322b3a282e63e77b0d2205fd2e51b8b932.tar
android_bootable_recovery-7cb4c3322b3a282e63e77b0d2205fd2e51b8b932.tar.gz
android_bootable_recovery-7cb4c3322b3a282e63e77b0d2205fd2e51b8b932.tar.bz2
android_bootable_recovery-7cb4c3322b3a282e63e77b0d2205fd2e51b8b932.tar.lz
android_bootable_recovery-7cb4c3322b3a282e63e77b0d2205fd2e51b8b932.tar.xz
android_bootable_recovery-7cb4c3322b3a282e63e77b0d2205fd2e51b8b932.tar.zst
android_bootable_recovery-7cb4c3322b3a282e63e77b0d2205fd2e51b8b932.zip
Diffstat (limited to 'mtp/twrpMtp.cpp')
-rwxr-xr-xmtp/twrpMtp.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mtp/twrpMtp.cpp b/mtp/twrpMtp.cpp
index 9a7df5be1..d9db4246e 100755
--- a/mtp/twrpMtp.cpp
+++ b/mtp/twrpMtp.cpp
@@ -107,11 +107,12 @@ pid_t twrpMtp::forkserver(void) {
return 0;
}
-void twrpMtp::addStorage(std::string display, std::string path, int mtpid) {
+void twrpMtp::addStorage(std::string display, std::string path, int mtpid, uint64_t maxFileSize) {
s = new storage;
s->display = display;
s->mount = path;
s->mtpid = mtpid;
+ s->maxFileSize = maxFileSize;
MTPD("twrpMtp mtpid: %d\n", s->mtpid);
mtpstorages->push_back(s);
}