From 7cb4c3322b3a282e63e77b0d2205fd2e51b8b932 Mon Sep 17 00:00:00 2001 From: bigbiff Date: Wed, 26 Nov 2014 20:36:07 -0500 Subject: add function to partition.cpp to return max file size to mtp responder Change-Id: If8114b5eac741db6c512fb35cb48e3825c2ff098 --- mtp/twrpMtp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mtp/twrpMtp.cpp') 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); } -- cgit v1.2.3