diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2015-09-29 14:55:59 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-10-14 17:55:26 +0200 |
commit | 4ca172817a8c6df0145c16d80abdf04d53a56d92 (patch) | |
tree | d861459d34d0f21ada10c7eb2985d9bc18335d78 /ui | |
parent | d809ab9521ace32a806cdf86ee7df40e1bf88443 (diff) |
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 'ui')
-rw-r--r-- | ui/console.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/console.c b/ui/console.c index 31f0d35987..aee6f21ecd 100644 --- a/ui/console.c +++ b/ui/console.c @@ -2093,7 +2093,8 @@ static const TypeInfo qemu_console_info = { static void register_types(void) { type_register_static(&qemu_console_info); - register_char_driver("vc", CHARDEV_BACKEND_KIND_VC, qemu_chr_parse_vc); + register_char_driver("vc", CHARDEV_BACKEND_KIND_VC, qemu_chr_parse_vc, + NULL); } type_init(register_types); |