char: use a const CharDriver
commit0b812f31925f2ed50eb54d2be6ac9291bf67b890
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 21 Oct 2016 13:07:45 +0000 (21 16:07 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 27 Jan 2017 17:07:58 +0000 (27 18:07 +0100)
tree8a51007dff4c1b2d7a6d004a06ac53a6059c0358
parentbd1caa3f8e8e63b9ac4cbcbee5a2dee3587fd852
char: use a const CharDriver

No need to allocate & copy fields, let's use static const struct instead.

Add an alias field to the CharDriver structure to cover the cases where
we previously registered a driver twice under two names.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
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