diff options
author | Hans de Goede <hdegoede@redhat.com> | 2012-09-15 11:31:00 +0100 |
---|---|---|
committer | Pete Batard <pete@akeo.ie> | 2012-09-15 23:29:32 +0100 |
commit | 75b94b24cf2a7b082b7fe1d493ebbdc3c999f910 (patch) | |
tree | 1249e500dbce4ffb9b635f1ee436097daf177aca /libusb/libusb.h | |
parent | 9d50e95028c6cada096b821eb9872539efced402 (diff) | |
download | libusb-75b94b24cf2a7b082b7fe1d493ebbdc3c999f910.tar.gz |
Core: Make libusb_error_name also handle transfer status codes
Note that for the code 0 which means success resp. completed we have an
overlap in the codes. This is not a problem since normally one would not
call libusb_error_name on success / normal completion.
Diffstat (limited to 'libusb/libusb.h')
-rw-r--r-- | libusb/libusb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libusb/libusb.h b/libusb/libusb.h index ae00c53..b166126 100644 --- a/libusb/libusb.h +++ b/libusb/libusb.h @@ -820,6 +820,9 @@ enum libusb_transfer_status { /** Device sent more data than requested */ LIBUSB_TRANSFER_OVERFLOW, + + /* NB! Remember to update libusb_error_name() + when adding new status codes here. */ }; /** \ingroup asyncio |