aboutsummaryrefslogtreecommitdiffstats
path: root/devices.c
diff options
context:
space:
mode:
authorkraxel <kraxel>2010-01-14 10:20:12 +0000
committerkraxel <kraxel>2010-01-14 10:20:12 +0000
commit304c5f13138e0bca04282b6d7dff9a53b0ddbe41 (patch)
tree2d98a7aedaf198fb739d3661ac3615b8f04b6c69 /devices.c
parenta8484f3985e884b38ca5514ab443f9ed8cccfa19 (diff)
downloadqemu-gtk-304c5f13138e0bca04282b6d7dff9a53b0ddbe41.tar.gz
- some experimental save-to-disk bits.
- fixup remote support.
Diffstat (limited to 'devices.c')
-rw-r--r--devices.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/devices.c b/devices.c
index 6fbde73..0ea2d78 100644
--- a/devices.c
+++ b/devices.c
@@ -323,6 +323,8 @@ void devices_parse_info_usb(struct qemu_window *win, char *str)
if (debug)
fprintf(stderr, "%s: %s - %s - %s\n",
__FUNCTION__, device, speed, name);
+ if (0 == strcmp(device, "0.0"))
+ continue;
snprintf(label, sizeof(label), "%s (%s)", name, device);
add_entry(win, win->usb.ag, menu_cb_unplug_usb, &i_xml, &i_pos,
@@ -390,6 +392,12 @@ void devices_parse_info_usbhost(struct qemu_window *win, char *str)
/* static */
add_entry(win, win->usbhost.ag, menu_cb_plug_usb, &i_xml, &i_pos,
"QEMU USB Tablet (virtual)", "PlugUsb", "tablet");
+ add_entry(win, win->usbhost.ag, menu_cb_plug_usb, &i_xml, &i_pos,
+ "QEMU USB Mouse (virtual)", "PlugUsb", "mouse");
+ add_entry(win, win->usbhost.ag, menu_cb_plug_usb, &i_xml, &i_pos,
+ "QEMU USB Keyboard (virtual)", "PlugUsb", "keyboard");
+ add_entry(win, win->usbhost.ag, menu_cb_plug_usb, &i_xml, &i_pos,
+ "QEMU USB Bluetooth (virtual)", "PlugUsb", "bt");
xml = malloc(i_pos + strlen(plug_usb_xml));
sprintf(xml, plug_usb_xml,