usb-mtp: Advertise SendObjectInfo for write support
commit53735bef108c5ccddf0f8a65cde4da53a48dbd47
authorBandan Das <bsd@redhat.com>
Fri, 23 Feb 2018 16:48:29 +0000 (23 11:48 -0500)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 26 Feb 2018 11:18:36 +0000 (26 12:18 +0100)
treea64853ec14a781b46f30d42229914fe80059461d
parent88d5f381ecb2d2828fd77676572ff9a99da699fb
usb-mtp: Advertise SendObjectInfo for write support

This patch implements a dummy ObjectInfo structure so that
it's easy to typecast the incoming data. If the metadata is
valid, write_pending is set. Also, the incoming filename
is utf-16, so, instead of depending on external libraries, just
implement a simple function to get the filename

Signed-off-by: Bandan Das <bsd@redhat.com>
Message-id: 20180223164829.29683-6-bsd@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/dev-mtp.c