usb-mtp: added object properties
commit67f3ef0c7a149a4e92b877375f771e065ae58651
authorIsaac Lozano <109lozanoi@gmail.com>
Sat, 6 Aug 2016 10:06:02 +0000 (6 03:06 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 14 Sep 2016 09:17:06 +0000 (14 11:17 +0200)
tree3f86147c3da911c93d1e2a05c05223e023baaea6
parent8a5865f331028e66b4ed233129d7a914c2d5bfc7
usb-mtp: added object properties

Windows uses object properties to determine the size of a file, so to
add object properties, we must also add a minimum set of new commands
and object properties. Most object properties are data that we already
have, except for the unique persistant object identifier. Windows
doesn't use this property, it seems, so we can cheat a bit and just use
the object handle for it.

Signed-off-by: Isaac Lozano <109lozanoi@gmail.com>
Message-id: a741d0dd380cd7eb1695e1eb34ee6f341183f20a.1470477265.git.109lozanoi@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/dev-mtp.c