aboutsummaryrefslogtreecommitdiff
path: root/backends/msmouse.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-09-29 15:29:15 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2015-10-19 10:05:50 +0200
commit96d885b93b47243d2fc6ee826abaa8c0017282c9 (patch)
tree952bbc2638fe741878b8b9ec2348043af3d312aa /backends/msmouse.c
parent3c0e5a4a845c9e2823c9060631eeefebabc2f093 (diff)
downloadqemu-arm-96d885b93b47243d2fc6ee826abaa8c0017282c9.tar.gz
qemu-char: convert msmouse backend to data-driven creation
Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'backends/msmouse.c')
-rw-r--r--backends/msmouse.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/backends/msmouse.c b/backends/msmouse.c
index d50ed479a5..0126fa0b13 100644
--- a/backends/msmouse.c
+++ b/backends/msmouse.c
@@ -63,7 +63,10 @@ static void msmouse_chr_close (struct CharDriverState *chr)
g_free (chr);
}
-CharDriverState *qemu_chr_open_msmouse(void)
+static CharDriverState *qemu_chr_open_msmouse(const char *id,
+ ChardevBackend *backend,
+ ChardevReturn *ret,
+ Error **errp)
{
CharDriverState *chr;
@@ -80,7 +83,7 @@ CharDriverState *qemu_chr_open_msmouse(void)
static void register_types(void)
{
register_char_driver("msmouse", CHARDEV_BACKEND_KIND_MSMOUSE, NULL,
- NULL);
+ qemu_chr_open_msmouse);
}
type_init(register_types);