mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
chardev: add braille support to qapi
This patch adds 'braille' support to qapi and also switches over the braille chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
f5a51cab2a
commit
2d57286da6
4 changed files with 12 additions and 3 deletions
|
@ -561,7 +561,7 @@ static void baum_close(struct CharDriverState *chr)
|
|||
g_free(baum);
|
||||
}
|
||||
|
||||
static CharDriverState *chr_baum_init(QemuOpts *opts)
|
||||
CharDriverState *chr_baum_init(void)
|
||||
{
|
||||
BaumDriverState *baum;
|
||||
CharDriverState *chr;
|
||||
|
@ -627,7 +627,7 @@ fail_handle:
|
|||
|
||||
static void register_types(void)
|
||||
{
|
||||
register_char_driver("braille", chr_baum_init);
|
||||
register_char_driver_qapi("braille", CHARDEV_BACKEND_KIND_BRAILLE, NULL);
|
||||
}
|
||||
|
||||
type_init(register_types);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue