diff options
| 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 |
| commit | e2ad6ec1718ef0c0e8230f8f62e7cfefcf598b6a (patch) | |
| tree | 0f7de42a1ed233d704558830643e73acd954b940 /media/mtp/mtp.h | |
| parent | 44d47ad56502a1ccb308a9ec2cd05120a53fac3d (diff) | |
| download | frameworks_base-e2ad6ec1718ef0c0e8230f8f62e7cfefcf598b6a.zip frameworks_base-e2ad6ec1718ef0c0e8230f8f62e7cfefcf598b6a.tar.gz frameworks_base-e2ad6ec1718ef0c0e8230f8f62e7cfefcf598b6a.tar.bz2 | |
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/mtp.h')
| -rw-r--r-- | media/mtp/mtp.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/media/mtp/mtp.h b/media/mtp/mtp.h index b7afa66..8bc2e22 100644 --- a/media/mtp/mtp.h +++ b/media/mtp/mtp.h @@ -37,7 +37,7 @@ #define MTP_CONTAINER_PARAMETER_OFFSET 12 #define MTP_CONTAINER_HEADER_SIZE 12 -// MTP Types +// MTP Data Types #define MTP_TYPE_UNDEFINED 0x0000 // Undefined #define MTP_TYPE_INT8 0x0001 // Signed 8-bit integer #define MTP_TYPE_UINT8 0x0002 // Unsigned 8-bit integer @@ -383,6 +383,10 @@ #define MTP_OPERATION_GET_OBJECT_PROP_DESC 0x9802 #define MTP_OPERATION_GET_OBJECT_PROP_VALUE 0x9803 #define MTP_OPERATION_SET_OBJECT_PROP_VALUE 0x9804 +#define MTP_OPERATION_GET_OBJECT_PROP_LIST 0x9805 +#define MTP_OPERATION_SET_OBJECT_PROP_LIST 0x9806 +#define MTP_OPERATION_GET_INTERDEPENDENT_PROP_DESC 0x9807 +#define MTP_OPERATION_SEND_OBJECT_PROP_LIST 0x9808 #define MTP_OPERATION_GET_OBJECT_REFERENCES 0x9810 #define MTP_OPERATION_SET_OBJECT_REFERENCES 0x9811 #define MTP_OPERATION_SKIP 0x9820 |
