aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-02-21 12:56:10 +0100
committerGerd Hoffmann <kraxel@redhat.com>2013-03-13 10:27:46 +0100
commit2d57286da6e57aacf3b2d0d3354d543ed100a485 (patch)
tree1d02fcd7ca61a39c77de585a8fe6ed5ca3a96bfa /backends
parentf5a51cab2afd1124f0988081207d506fbec629b4 (diff)
downloadqemu-2d57286da6e57aacf3b2d0d3354d543ed100a485.zip
qemu-2d57286da6e57aacf3b2d0d3354d543ed100a485.tar.gz
qemu-2d57286da6e57aacf3b2d0d3354d543ed100a485.tar.bz2
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>
Diffstat (limited to 'backends')
-rw-r--r--backends/baum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/baum.c b/backends/baum.c
index 9063aea..d7d658c 100644
--- a/backends/baum.c
+++ b/backends/baum.c
@@ -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);