mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
chardev: add msmouse support to qapi
This patch adds 'msmouse' support to qapi and also switches over the msmouse chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
80dca9e643
commit
f5a51cab2a
4 changed files with 10 additions and 3 deletions
|
@ -63,7 +63,7 @@ static void msmouse_chr_close (struct CharDriverState *chr)
|
|||
g_free (chr);
|
||||
}
|
||||
|
||||
static CharDriverState *qemu_chr_open_msmouse(QemuOpts *opts)
|
||||
CharDriverState *qemu_chr_open_msmouse(void)
|
||||
{
|
||||
CharDriverState *chr;
|
||||
|
||||
|
@ -78,7 +78,7 @@ static CharDriverState *qemu_chr_open_msmouse(QemuOpts *opts)
|
|||
|
||||
static void register_types(void)
|
||||
{
|
||||
register_char_driver("msmouse", qemu_chr_open_msmouse);
|
||||
register_char_driver_qapi("msmouse", CHARDEV_BACKEND_KIND_MSMOUSE, NULL);
|
||||
}
|
||||
|
||||
type_init(register_types);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue