diff options
author | Daniel Drake <dsd@gentoo.org> | 2008-06-20 23:04:53 -0500 |
---|---|---|
committer | Daniel Drake <dsd@gentoo.org> | 2008-06-20 23:05:09 -0500 |
commit | d5f82893fab3f1c13b1af4ba17aac72479bad7d5 (patch) | |
tree | de831d25cf24f2090547a65279e150d4c88a74b5 /libusb/sync.c | |
parent | 546dee211eefbdd280fd1fc9dee84a9b52105078 (diff) | |
download | libusb-d5f82893fab3f1c13b1af4ba17aac72479bad7d5.tar.gz |
Overflow handling
Diffstat (limited to 'libusb/sync.c')
-rw-r--r-- | libusb/sync.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libusb/sync.c b/libusb/sync.c index 3a71428..55450c4 100644 --- a/libusb/sync.c +++ b/libusb/sync.c @@ -191,6 +191,9 @@ static int do_sync_bulk_transfer(struct libusb_device_handle *dev_handle, case LIBUSB_TRANSFER_STALL: r = LIBUSB_ERROR_PIPE; break; + case LIBUSB_TRANSFER_OVERFLOW: + r = LIBUSB_ERROR_OVERFLOW; + break; case LIBUSB_TRANSFER_NO_DEVICE: r = LIBUSB_ERROR_NO_DEVICE; break; @@ -238,6 +241,8 @@ static int do_sync_bulk_transfer(struct libusb_device_handle *dev_handle, * \returns LIBUSB_ERROR_TIMEOUT if the transfer timed out (and populates * <tt>transferred</tt>) * \returns LIBUSB_ERROR_PIPE if the endpoint halted + * \returns LIBUSB_ERROR_OVERFLOW if the device offered more data, see + * \ref packetoverflow * \returns LIBUSB_ERROR_NO_DEVICE if the device has been disconnected * \returns another LIBUSB_ERROR code on other failures */ @@ -285,6 +290,8 @@ API_EXPORTED int libusb_bulk_transfer(struct libusb_device_handle *dev_handle, * \returns 0 on success (and populates <tt>transferred</tt>) * \returns LIBUSB_ERROR_TIMEOUT if the transfer timed out * \returns LIBUSB_ERROR_PIPE if the endpoint halted + * \returns LIBUSB_ERROR_OVERFLOW if the device offered more data, see + * \ref packetoverflow * \returns LIBUSB_ERROR_NO_DEVICE if the device has been disconnected * \returns another LIBUSB_ERROR code on other error */ |