summaryrefslogtreecommitdiff
path: root/media/mtp/MtpDatabase.h
diff options
context:
space:
mode:
author Mike Lockwood <lockwood@google.com> 2010-10-14 18:03:25 -0400
committer Mike Lockwood <lockwood@android.com> 2010-11-15 11:46:51 -0500
commite2ad6ec1718ef0c0e8230f8f62e7cfefcf598b6a (patch)
tree0f7de42a1ed233d704558830643e73acd954b940 /media/mtp/MtpDatabase.h
parent44d47ad56502a1ccb308a9ec2cd05120a53fac3d (diff)
MTP: Partial implementation of the GetObjectPropList command
In this initial implementation we only support fetching one property at a time. Support depth = 0 (single object) or depth = 1 (all objects in a directory) Reimplemented GetObjectPropValue on top of GetObjectPropList, since the former is a special case of the latter. Change-Id: Ia76ee61741d6ee3902b5c5d9fc094cf86dfaf650 Signed-off-by: Mike Lockwood <lockwood@google.com>
Diffstat (limited to 'media/mtp/MtpDatabase.h')
-rw-r--r--media/mtp/MtpDatabase.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/media/mtp/MtpDatabase.h b/media/mtp/MtpDatabase.h
index c8cb016c8101..fafd22112d90 100644
--- a/media/mtp/MtpDatabase.h
+++ b/media/mtp/MtpDatabase.h
@@ -75,6 +75,12 @@ public:
virtual MtpResponseCode resetDeviceProperty(MtpDeviceProperty property) = 0;
+ virtual MtpResponseCode getObjectPropertyList(MtpObjectHandle handle,
+ MtpObjectFormat format,
+ MtpObjectProperty property,
+ int groupCode, int depth,
+ MtpDataPacket& packet) = 0;
+
virtual MtpResponseCode getObjectInfo(MtpObjectHandle handle,
MtpDataPacket& packet) = 0;