diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-02-21 11:58:44 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-03-13 10:27:46 +0100 |
commit | f5a51cab2afd1124f0988081207d506fbec629b4 (patch) | |
tree | 85a7ae86cc9593c49c6935eb4b43513f711ad73e /backends | |
parent | 80dca9e643d11b54f1b9bafbaefeadfb1099e023 (diff) | |
download | qemu-f5a51cab2afd1124f0988081207d506fbec629b4.tar.gz qemu-f5a51cab2afd1124f0988081207d506fbec629b4.tar.bz2 qemu-f5a51cab2afd1124f0988081207d506fbec629b4.zip |
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.c | 4 |
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); |