diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2021-01-01 19:23:00 +0100 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2021-01-01 19:23:00 +0100 |
commit | 88d86c0e334eafc0d328f17f7d24ce0a047b5751 (patch) | |
tree | aee8473d04577b8f9cbbd858901511f0e3cf8ffc /src/ptp.h | |
parent | 93c8c4106fefdd1ed8f9f10f1014f8c445a720dc (diff) | |
download | libmtp-88d86c0e334eafc0d328f17f7d24ce0a047b5751.tar.gz |
support more MTP ObjectPropDesc types
Diffstat (limited to 'src/ptp.h')
-rw-r--r-- | src/ptp.h | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -1591,6 +1591,16 @@ struct _PTPPropDescEnumForm { }; typedef struct _PTPPropDescEnumForm PTPPropDescEnumForm; +struct _PTPPropDescArrayLengthForm { + uint16_t NumberOfValues; +}; +typedef struct _PTPPropDescArrayLengthForm PTPPropDescArrayLengthForm; + +struct _PTPPropDescStringForm { + char *String; +}; +typedef struct _PTPPropDescStringForm PTPPropDescStringForm; + /* Device Property Describing Dataset (DevicePropDesc) */ struct _PTPDevicePropDesc { @@ -1617,8 +1627,13 @@ struct _PTPObjectPropDesc { uint32_t GroupCode; uint8_t FormFlag; union { - PTPPropDescEnumForm Enum; - PTPPropDescRangeForm Range; + PTPPropDescEnumForm Enum; + PTPPropDescRangeForm Range; + PTPPropDescStringForm DateTime; + PTPPropDescArrayLengthForm FixedLengthArray; + PTPPropDescStringForm RegularExpression; + PTPPropDescArrayLengthForm ByteArray; + PTPPropDescStringForm LongString; } FORM; }; typedef struct _PTPObjectPropDesc PTPObjectPropDesc; |