From owner-p4-projects@FreeBSD.ORG Sun Feb 7 14:36:24 2010 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id EF983106568B; Sun, 7 Feb 2010 14:36:23 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75343106566B for ; Sun, 7 Feb 2010 14:36:23 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 63DB58FC15 for ; Sun, 7 Feb 2010 14:36:23 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o17EaNWp032537 for ; Sun, 7 Feb 2010 14:36:23 GMT (envelope-from hselasky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o17EaNEm032535 for perforce@freebsd.org; Sun, 7 Feb 2010 14:36:23 GMT (envelope-from hselasky@FreeBSD.org) Date: Sun, 7 Feb 2010 14:36:23 GMT Message-Id: <201002071436.o17EaNEm032535@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 174444 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Feb 2010 14:36:24 -0000 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"); +}