]> git.proxmox.com Git - qemu.git/commit - hw/usb/dev-hid.c
usb-hid: create & use HIDState
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 15 Jul 2011 11:12:44 +0000 (13:12 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 4 Aug 2011 13:51:51 +0000 (15:51 +0200)
commit0d878eec1eddcf01f07c38c6040ea91184139299
tree8cafff5fddbc2968673a0324c57cbd421da5efbf
parent0ce668bc5284ffebd2d0b269ae141f9a696dbd01
usb-hid: create & use HIDState

First step in separating out the HID emulation code from usb-hid, so it
can be reused without creating a dummy usb device like bluetooth does.

This creates a HIDState struct, moves the non-usbish fields from
USBHIDStruct there.  Renames non-usbish structs, defines and functions
from usb* to hid*.  Adapts the code to that.

Also cleans up a bunch of code style issues along the way.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-hid.c