]> git.ipfire.org Git - thirdparty/qemu.git/commit
qemu-char: add create to register_char_driver
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 29 Sep 2015 12:55:59 +0000 (14:55 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 14 Oct 2015 15:55:26 +0000 (17:55 +0200)
commit4ca172817a8c6df0145c16d80abdf04d53a56d92
treed861459d34d0f21ada10c7eb2985d9bc18335d78
parentd809ab9521ace32a806cdf86ee7df40e1bf88443
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>
backends/baum.c
backends/msmouse.c
backends/testdev.c
include/sysemu/char.h
qemu-char.c
spice-qemu-char.c
ui/console.c