Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KfFVq-0006le-Km for qemu-devel@nongnu.org; Mon, 15 Sep 2008 10:57:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KfFVp-0006lC-Mg for qemu-devel@nongnu.org; Mon, 15 Sep 2008 10:57:14 -0400 Received: from [199.232.76.173] (port=54499 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfFVp-0006l9-G0 for qemu-devel@nongnu.org; Mon, 15 Sep 2008 10:57:13 -0400 Received: from savannah.gnu.org ([199.232.41.3]:46286 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KfFVp-0002dc-9n for qemu-devel@nongnu.org; Mon, 15 Sep 2008 10:57:13 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KfFVo-0001HV-E1 for qemu-devel@nongnu.org; Mon, 15 Sep 2008 14:57:12 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KfFVn-0001HN-Uw for qemu-devel@nongnu.org; Mon, 15 Sep 2008 14:57:12 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Mon, 15 Sep 2008 14:57:12 +0000 Subject: [Qemu-devel] [5225] Define a few structures instead of including a file, add "static" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5225 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5225 Author: blueswir1 Date: 2008-09-15 14:57:11 +0000 (Mon, 15 Sep 2008) Log Message: ----------- Define a few structures instead of including a file, add "static" Modified Paths: -------------- trunk/usb-linux.c Modified: trunk/usb-linux.c =================================================================== --- trunk/usb-linux.c 2008-09-15 08:49:15 UTC (rev 5224) +++ trunk/usb-linux.c 2008-09-15 14:57:11 UTC (rev 5225) @@ -35,11 +35,29 @@ #include #include -#include #include #include #include "hw/usb.h" +/* We redefine it to avoid version problems */ +struct usb_ctrltransfer { + uint8_t bRequestType; + uint8_t bRequest; + uint16_t wValue; + uint16_t wIndex; + uint16_t wLength; + uint32_t timeout; + void *data; +}; + +struct usb_ctrlrequest { + uint8_t bRequestType; + uint8_t bRequest; + uint16_t wValue; + uint16_t wIndex; + uint16_t wLength; +}; + typedef int USBScanFunc(void *opaque, int bus_num, int addr, int class_id, int vendor_id, int product_id, const char *product_name, int speed); @@ -710,7 +728,7 @@ * * Returns length of the transaction or one of the USB_RET_XXX codes. */ -int usb_host_handle_packet(USBDevice *s, USBPacket *p) +static int usb_host_handle_packet(USBDevice *s, USBPacket *p) { switch(p->pid) { case USB_MSG_ATTACH: