From b6da06e9dfb916da4b88e09e8a83e22ddae445b5 Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Thu, 14 Oct 2010 18:03:25 -0400 Subject: 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 --- media/mtp/MtpDatabase.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'media/mtp/MtpDatabase.h') diff --git a/media/mtp/MtpDatabase.h b/media/mtp/MtpDatabase.h index c8cb016..fafd221 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; -- cgit v1.1