usb-mtp: Introduce write support for MTP objects
commit88d5f381ecb2d2828fd77676572ff9a99da699fb
authorBandan Das <bsd@redhat.com>
Fri, 23 Feb 2018 16:48:28 +0000 (23 11:48 -0500)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 26 Feb 2018 11:18:36 +0000 (26 12:18 +0100)
tree173e03629623a82310a6ecdf7b7e0418a7709740
parentec6206a68f700bd22aec3e3b98877d45b22d5143
usb-mtp: Introduce write support for MTP objects

Allow write operations on behalf of the initiator. The
precursor to write is the sending of the write metadata
that consists of the ObjectInfo dataset. This patch introduces
a flag that is set when the responder is ready to receive
write data based on a previous SendObjectInfo operation by
the initiator (The SendObjectInfo implementation is in a
later patch)

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