summaryrefslogtreecommitdiff
path: root/src/ptp.h
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2021-01-01 19:23:00 +0100
committerMarcus Meissner <marcus@jet.franken.de>2021-01-01 19:23:00 +0100
commit88d86c0e334eafc0d328f17f7d24ce0a047b5751 (patch)
treeaee8473d04577b8f9cbbd858901511f0e3cf8ffc /src/ptp.h
parent93c8c4106fefdd1ed8f9f10f1014f8c445a720dc (diff)
downloadlibmtp-88d86c0e334eafc0d328f17f7d24ce0a047b5751.tar.gz
support more MTP ObjectPropDesc types
Diffstat (limited to 'src/ptp.h')
-rw-r--r--src/ptp.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/ptp.h b/src/ptp.h
index e88174e..d2152bf 100644
--- a/src/ptp.h
+++ b/src/ptp.h
@@ -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;