darwin: add support for the LIBUSB_TRANSFER_ADD_ZERO_PACKET transfer flag.
commitae712a7be927d3ee4ed81ceae06a839f872fe8ff
authorNathan Hjelm <hjelmn@cs.unm.edu>
Fri, 8 Feb 2013 07:12:13 +0000 (8 00:12 -0700)
committerHans de Goede <hdegoede@redhat.com>
Wed, 15 May 2013 18:43:35 +0000 (15 20:43 +0200)
tree4d6d9ef856da717dde94d41bf045940fcbe35dc6
parent7598cc176c844d50dac6287b919fafca02cf5d08
darwin: add support for the LIBUSB_TRANSFER_ADD_ZERO_PACKET transfer flag.

The zero-length packet is sent by the async event thread if all the following
conditions are met:

1) The packet size is not a multiple of maxPacketSize, and
2) the transfer completed successfully.

References #6.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
libusb/os/darwin_usb.c
libusb/version_nano.h