From owner-freebsd-usb@FreeBSD.ORG Sun Jun 7 03:03:22 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A09BD106566C for ; Sun, 7 Jun 2009 03:03:22 +0000 (UTC) (envelope-from jmt@twilley.org) Received: from alpha.twilley.org (alpha.twilley.org [204.152.189.135]) by mx1.freebsd.org (Postfix) with ESMTP id 878708FC16 for ; Sun, 7 Jun 2009 03:03:22 +0000 (UTC) (envelope-from jmt@twilley.org) Received: from localhost (localhost [127.0.0.1]) by alpha.twilley.org (Postfix) with ESMTP id DE842233822 for ; Sat, 6 Jun 2009 19:45:53 -0700 (PDT) X-Virus-Scanned: amavisd-new at twilley.org Received: from alpha.twilley.org ([127.0.0.1]) by localhost (alpha.twilley.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qF5iAN9Viyxz for ; Sat, 6 Jun 2009 19:45:52 -0700 (PDT) Received: from [192.168.1.102] (c-24-6-104-13.hsd1.ca.comcast.net [24.6.104.13]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by alpha.twilley.org (Postfix) with ESMTPSA id 1655C233819 for ; Sat, 6 Jun 2009 19:45:52 -0700 (PDT) Message-ID: <4A2B29C0.7020709@twilley.org> Date: Sat, 06 Jun 2009 19:45:20 -0700 From: Jack Twilley User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: How to retrieve iManufacturer/iProduct information from libusb20? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jun 2009 03:03:22 -0000 I have been looking through the source to usbconfig and other tools trying to figure out how to retrieve the iManufacturer and iProduct strings. The libusb20 man page describes the libusb20_dev_get_device_desc() function but there's no useful information on the struct it returns. The include file looks as if the struct is automagically generated by macros within macros which is too complicated for me to figure out without help. Any ideas? There's gotta be a better way than using LIBUSB20_DEVICE_DESC()... Jack.