From 1b0f758a334d78d3832d17d694ac0c931da36050 Mon Sep 17 00:00:00 2001 From: Peter Stuge Date: Wed, 14 Sep 2011 03:00:14 +0200 Subject: Add libusb_error_name() API function Until we have i18ned error messages we can at least offer easy translation from numeric error code to the error code's name. [hansg: switch() on enum to get a compiler warning if a case is missing] [hansg: Better return value when called with an unknown error code] [hansg: Fix DEFAULT_VISIBILITY in definition to compile on all platforms] --- libusb/libusb-1.0.def | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libusb/libusb-1.0.def') diff --git a/libusb/libusb-1.0.def b/libusb/libusb-1.0.def index 54b0622..96abd17 100644 --- a/libusb/libusb-1.0.def +++ b/libusb/libusb-1.0.def @@ -18,6 +18,8 @@ EXPORTS libusb_control_transfer@32 = libusb_control_transfer libusb_detach_kernel_driver libusb_detach_kernel_driver@8 = libusb_detach_kernel_driver + libusb_error_name + libusb_error_name@4 = libusb_error_name libusb_event_handler_active libusb_event_handler_active@4 = libusb_event_handler_active libusb_event_handling_ok -- cgit v1.2.1