Date: Sun, 7 Feb 2010 14:36:23 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 174444 for review Message-ID: <201002071436.o17EaNEm032535@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/chv.cgi?CH=174444 Change 174444 by hselasky@hselasky_laptop001 on 2010/02/07 14:35:26 LibUSB: - add new API function. Affected files ... .. //depot/projects/usb/src/lib/libusb/libusb.3#21 edit .. //depot/projects/usb/src/lib/libusb/libusb.h#13 edit .. //depot/projects/usb/src/lib/libusb/libusb10.c#22 edit Differences ... ==== //depot/projects/usb/src/lib/libusb/libusb.3#21 (text+ko) ==== @@ -72,6 +72,15 @@ . .Pp . +.Ft const char * +.Fn libusb_strerror "int code" +Get ASCII representation of the error given by the +.Fa code +argument. +. +. +.Pp +. .Ft void .Fn libusb_set_debug "libusb_context *ctx" "int level" Set debug to the ==== //depot/projects/usb/src/lib/libusb/libusb.h#13 (text+ko) ==== @@ -301,6 +301,7 @@ /* Library initialisation */ void libusb_set_debug(libusb_context * ctx, int level); +const char *libusb_strerror(int code); int libusb_init(libusb_context ** context); void libusb_exit(struct libusb_context *ctx); ==== //depot/projects/usb/src/lib/libusb/libusb10.c#22 (text+ko) ==== @@ -1372,3 +1372,9 @@ return (le16toh(x)); } +const char * +libusb_strerror(int code) +{ + /* TODO */ + return ("Unknown error"); +}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002071436.o17EaNEm032535>