summaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-02-21 11:58:44 +0100
committerGerd Hoffmann <kraxel@redhat.com>2013-03-13 10:27:46 +0100
commitf5a51cab2afd1124f0988081207d506fbec629b4 (patch)
tree85a7ae86cc9593c49c6935eb4b43513f711ad73e /backends
parent80dca9e643d11b54f1b9bafbaefeadfb1099e023 (diff)
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>
Diffstat (limited to 'backends')
-rw-r--r--backends/msmouse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/msmouse.c b/backends/msmouse.c
index 407ec87784..61052fe783 100644
--- a/backends/msmouse.c
+++ b/backends/msmouse.c
@@ -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);