diff options
author | hselasky <hselasky@FreeBSD.org> | 2011-09-19 08:52:06 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2011-09-19 08:52:06 +0000 |
commit | c186259e3181ae2f836aef914837c5abff6820fc (patch) | |
tree | 5f1edfe8c0f6f8eefa57d51cf108c2d03e053aa5 /lib/libusb/libusb20.3 | |
parent | d3ab0cf954ad6a22d6d4abd24a9711534e70af19 (diff) | |
download | FreeBSD-src-c186259e3181ae2f836aef914837c5abff6820fc.zip FreeBSD-src-c186259e3181ae2f836aef914837c5abff6820fc.tar.gz |
Implement missing USB debug information functions.
Approved by: re (kib)
MFC after: 1 week
Diffstat (limited to 'lib/libusb/libusb20.3')
-rw-r--r-- | lib/libusb/libusb20.3 | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/lib/libusb/libusb20.3 b/lib/libusb/libusb20.3 index 042f885..b41bec1 100644 --- a/lib/libusb/libusb20.3 +++ b/lib/libusb/libusb20.3 @@ -212,6 +212,10 @@ USB access library (libusb -lusb) .Fn libusb20_me_decode "const void *pdata" "uint16_t len" "void *pdecoded" .Ft "const uint8_t *" .Fn libusb20_desc_foreach "const struct libusb20_me_struct *me" "const uint8_t *pdesc" +.Ft "const char *" +.Fn libusb20_strerror "int code" +.Ft "const char *" +.Fn libusb20_error_name "int code" . . .Sh DESCRIPTION @@ -996,6 +1000,22 @@ The total decoded length is returned. The buffer pointer cannot be NULL. . . +.Sh USB DEBUGGING +.Pp +.Ft const char * +.Fn libusb20_strerror "int code" +Get the ASCII representation of the error given by the +.Fa code +argument. +This function does not return NULL. +.Pp +.Ft const char * +.Fn libusb20_error_name "int code" +Get the ASCII representation of the error enum given by the +.Fa code +argument. +This function does not return NULL. +. .Sh FILES . . @@ -1003,7 +1023,8 @@ The buffer pointer cannot be NULL. .Sh SEE ALSO .Xr usb 4 , .Xr libusb 3 , -.Xr usbconfig 8 +.Xr usbconfig 8 , +.Xr usbdump 8 . . .Sh HISTORY |