aboutsummaryrefslogtreecommitdiff
path: root/hw/usb-hid.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-31 14:24:01 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-09-09 14:55:18 -0500
commit274945b633200d9bf7dc8885ee2a80a4570cfe11 (patch)
tree5db0e464033f3793c4659e692e231ad8673ff1f3 /hw/usb-hid.c
parenta5d2f7273c4f59942cc7ffa763d6b60a6f44e908 (diff)
downloadqemu-274945b633200d9bf7dc8885ee2a80a4570cfe11.zip
qemu-274945b633200d9bf7dc8885ee2a80a4570cfe11.tar.gz
qemu-274945b633200d9bf7dc8885ee2a80a4570cfe11.tar.bz2
qdev/usb: add some convinience aliases.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/usb-hid.c')
-rw-r--r--hw/usb-hid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/usb-hid.c b/hw/usb-hid.c
index 0837ec1..3bf06fa 100644
--- a/hw/usb-hid.c
+++ b/hw/usb-hid.c
@@ -882,6 +882,7 @@ void usb_hid_datain_cb(USBDevice *dev, void *opaque, void (*datain)(void *))
static struct USBDeviceInfo hid_info[] = {
{
.qdev.name = "QEMU USB Tablet",
+ .qdev.alias = "usb-tablet",
.qdev.size = sizeof(USBHIDState),
.init = usb_tablet_initfn,
.handle_packet = usb_generic_handle_packet,
@@ -891,6 +892,7 @@ static struct USBDeviceInfo hid_info[] = {
.handle_destroy = usb_hid_handle_destroy,
},{
.qdev.name = "QEMU USB Mouse",
+ .qdev.alias = "usb-mouse",
.qdev.size = sizeof(USBHIDState),
.init = usb_mouse_initfn,
.handle_packet = usb_generic_handle_packet,
@@ -900,6 +902,7 @@ static struct USBDeviceInfo hid_info[] = {
.handle_destroy = usb_hid_handle_destroy,
},{
.qdev.name = "QEMU USB Keyboard",
+ .qdev.alias = "usb-kbd",
.qdev.size = sizeof(USBHIDState),
.init = usb_keyboard_initfn,
.handle_packet = usb_generic_handle_packet,