mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
qemu-char: convert msmouse backend to data-driven creation
Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
3c0e5a4a84
commit
96d885b93b
5 changed files with 6 additions and 14 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue