aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-09-29 14:55:59 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2015-10-14 17:55:26 +0200
commit4ca172817a8c6df0145c16d80abdf04d53a56d92 (patch)
treed861459d34d0f21ada10c7eb2985d9bc18335d78 /backends
parentd809ab9521ace32a806cdf86ee7df40e1bf88443 (diff)
downloadqemu-arm-4ca172817a8c6df0145c16d80abdf04d53a56d92.tar.gz
qemu-char: add create to register_char_driver
Having creation as a member of the CharDriver struct removes the need to export functions for qemu-char.c's usage. After the conversion, chardev backends implemented outside qemu-char.c will not need a stub creation function anymore. Ultimately all drivers will be converted. For now, support the case where cd->create == NULL. Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'backends')
-rw-r--r--backends/baum.c3
-rw-r--r--backends/msmouse.c3
-rw-r--r--backends/testdev.c3
3 files changed, 6 insertions, 3 deletions
diff --git a/backends/baum.c b/backends/baum.c
index a17f62541b..e86a019bbd 100644
--- a/backends/baum.c
+++ b/backends/baum.c
@@ -629,7 +629,8 @@ fail_handle:
static void register_types(void)
{
- register_char_driver("braille", CHARDEV_BACKEND_KIND_BRAILLE, NULL);
+ register_char_driver("braille", CHARDEV_BACKEND_KIND_BRAILLE, NULL,
+ NULL);
}
type_init(register_types);
diff --git a/backends/msmouse.c b/backends/msmouse.c
index 0119110a40..d50ed479a5 100644
--- a/backends/msmouse.c
+++ b/backends/msmouse.c
@@ -79,7 +79,8 @@ CharDriverState *qemu_chr_open_msmouse(void)
static void register_types(void)
{
- register_char_driver("msmouse", CHARDEV_BACKEND_KIND_MSMOUSE, NULL);
+ register_char_driver("msmouse", CHARDEV_BACKEND_KIND_MSMOUSE, NULL,
+ NULL);
}
type_init(register_types);
diff --git a/backends/testdev.c b/backends/testdev.c
index 1429152d05..43787f689f 100644
--- a/backends/testdev.c
+++ b/backends/testdev.c
@@ -125,7 +125,8 @@ CharDriverState *chr_testdev_init(void)
static void register_types(void)
{
- register_char_driver("testdev", CHARDEV_BACKEND_KIND_TESTDEV, NULL);
+ register_char_driver("testdev", CHARDEV_BACKEND_KIND_TESTDEV, NULL,
+ NULL);
}
type_init(register_types);