A bunch of code was disabled via #if 0, for a quite long time (since
Sept 2009). Surprisingly the code builds just fine when they are
removed (tested on OpenBSD). /me wonders nevertheless whenever there
are any users of those bits when this went unnoticed for almost two
years ...
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
static int ensure_ep_open(USBHostDevice *dev, int ep, int mode)
{
char buf[32];
static int ensure_ep_open(USBHostDevice *dev, int ep, int mode)
{
char buf[32];
static void usb_host_handle_reset(USBDevice *dev)
{
static void usb_host_handle_reset(USBDevice *dev)
{
/* XXX:
* -check device states against transfer requests
* and return appropriate response
/* XXX:
* -check device states against transfer requests
* and return appropriate response
static void usb_host_handle_destroy(USBDevice *opaque)
{
static void usb_host_handle_destroy(USBDevice *opaque)
{
USBDevice *usb_host_device_open(const char *devname)
{
struct usb_device_info bus_info, dev_info;
USBDevice *usb_host_device_open(const char *devname)
{
struct usb_device_info bus_info, dev_info;
- USBDevice *d = NULL;
- USBHostDevice *dev, *ret = NULL;
+ USBDevice *d = NULL, *ret = NULL;
+ USBHostDevice *dev;
char ctlpath[PATH_MAX + 1];
char buspath[PATH_MAX + 1];
int bfd, dfd, bus, address, i;
char ctlpath[PATH_MAX + 1];
char buspath[PATH_MAX + 1];
int bfd, dfd, bus, address, i;
.init = usb_host_initfn,
.handle_packet = usb_generic_handle_packet,
.handle_reset = usb_host_handle_reset,
.init = usb_host_initfn,
.handle_packet = usb_generic_handle_packet,
.handle_reset = usb_host_handle_reset,
.handle_control = usb_host_handle_control,
.handle_data = usb_host_handle_data,
.handle_control = usb_host_handle_control,
.handle_data = usb_host_handle_data,
.handle_destroy = usb_host_handle_destroy,
};
.handle_destroy = usb_host_handle_destroy,
};