summaryrefslogtreecommitdiffstats
path: root/media/mtp/MtpRequestPacket.h
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@google.com>2014-11-13 16:49:14 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-13 16:49:14 +0000
commite1e814c7c640a51511b149985d57f8bfd4a8bf78 (patch)
treee80535c005c41fc25e24648fa0fa5f50b2d53137 /media/mtp/MtpRequestPacket.h
parentdd1b265eb3041532ad76d41bb73dbe9722decf7f (diff)
parente418cfae0970d1abe60b8cc681aa8c8a828b3769 (diff)
downloadframeworks_av-e1e814c7c640a51511b149985d57f8bfd4a8bf78.zip
frameworks_av-e1e814c7c640a51511b149985d57f8bfd4a8bf78.tar.gz
frameworks_av-e1e814c7c640a51511b149985d57f8bfd4a8bf78.tar.bz2
am e418cfae: am 869e0798: Merge "MTP: add strict bounds checking for all incoming packets" into lmp-mr1-dev
* commit 'e418cfae0970d1abe60b8cc681aa8c8a828b3769': MTP: add strict bounds checking for all incoming packets
Diffstat (limited to 'media/mtp/MtpRequestPacket.h')
-rw-r--r--media/mtp/MtpRequestPacket.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/media/mtp/MtpRequestPacket.h b/media/mtp/MtpRequestPacket.h
index 1201f11..79b798d 100644
--- a/media/mtp/MtpRequestPacket.h
+++ b/media/mtp/MtpRequestPacket.h
@@ -43,6 +43,10 @@ public:
inline MtpOperationCode getOperationCode() const { return getContainerCode(); }
inline void setOperationCode(MtpOperationCode code)
{ return setContainerCode(code); }
+ inline int getParameterCount() const { return mParameterCount; }
+
+private:
+ int mParameterCount;
};
}; // namespace android