From owner-svn-src-all@FreeBSD.ORG Thu May 13 00:25:31 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5322A106566C; Thu, 13 May 2010 00:25:31 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from svn.freebsd.org (unknown [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 280308FC18; Thu, 13 May 2010 00:25:31 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o4D0PVmB068254; Thu, 13 May 2010 00:25:31 GMT (envelope-from thompsa@svn.freebsd.org) Received: (from thompsa@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o4D0PVK2068249; Thu, 13 May 2010 00:25:31 GMT (envelope-from thompsa@svn.freebsd.org) Message-Id: <201005130025.o4D0PVK2068249@svn.freebsd.org> From: Andrew Thompson Date: Thu, 13 May 2010 00:25:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r208020 - head/lib/libusb X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 May 2010 00:25:31 -0000 Author: thompsa Date: Thu May 13 00:25:30 2010 New Revision: 208020 URL: http://svn.freebsd.org/changeset/base/208020 Log: Fix header file compliancy with libusb 1.0 from sourceforge. Reported by: Xiaofan Chen Submitted by: Hans Petter Selasky Modified: head/lib/libusb/libusb.h head/lib/libusb/libusb10.c head/lib/libusb/libusb10_desc.c head/lib/libusb/libusb10_io.c Modified: head/lib/libusb/libusb.h ============================================================================== --- head/lib/libusb/libusb.h Thu May 13 00:19:03 2010 (r208019) +++ head/lib/libusb/libusb.h Thu May 13 00:25:30 2010 (r208020) @@ -178,7 +178,7 @@ enum libusb_debug_level { struct libusb_context; struct libusb_device; struct libusb_transfer; -struct libusb20_device; +struct libusb_device_handle; struct libusb_pollfd { int fd; @@ -187,7 +187,7 @@ struct libusb_pollfd { typedef struct libusb_context libusb_context; typedef struct libusb_device libusb_device; -typedef struct libusb20_device libusb_device_handle; +typedef struct libusb_device_handle libusb_device_handle; typedef struct libusb_pollfd libusb_pollfd; typedef void (*libusb_pollfd_added_cb) (int fd, short events, void *user_data); typedef void (*libusb_pollfd_removed_cb) (int fd, void *user_data); Modified: head/lib/libusb/libusb10.c ============================================================================== --- head/lib/libusb/libusb10.c Thu May 13 00:19:03 2010 (r208019) +++ head/lib/libusb/libusb10.c Thu May 13 00:25:30 2010 (r208020) @@ -37,6 +37,8 @@ #include #include +#define libusb_device_handle libusb20_device + #include "libusb20.h" #include "libusb20_desc.h" #include "libusb20_int.h" Modified: head/lib/libusb/libusb10_desc.c ============================================================================== --- head/lib/libusb/libusb10_desc.c Thu May 13 00:19:03 2010 (r208019) +++ head/lib/libusb/libusb10_desc.c Thu May 13 00:25:30 2010 (r208020) @@ -29,6 +29,8 @@ #include #include +#define libusb_device_handle libusb20_device + #include "libusb20.h" #include "libusb20_desc.h" #include "libusb20_int.h" Modified: head/lib/libusb/libusb10_io.c ============================================================================== --- head/lib/libusb/libusb10_io.c Thu May 13 00:19:03 2010 (r208019) +++ head/lib/libusb/libusb10_io.c Thu May 13 00:25:30 2010 (r208020) @@ -34,6 +34,8 @@ #include #include +#define libusb_device_handle libusb20_device + #include "libusb20.h" #include "libusb20_desc.h" #include "libusb20_int.h"