]> git.proxmox.com Git - mirror_qemu.git/commit - spice-qemu-char.c
char: remove class kind field
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 9 Dec 2016 08:04:51 +0000 (11:04 +0300)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 31 Jan 2017 09:03:42 +0000 (13:03 +0400)
commit0b663b7d77f1a2170fe30a91e3d6de1bb769a378
tree25d68b2d6118898621c3c79d30b32c6534865a3a
parent279b066e4c21825c60ea04c4860a1839e1867743
char: remove class kind field

The class kind is necessary to lookup the chardev name in
qmp_chardev_add() after calling qemu_chr_new_from_opts() and to set
the appropriate ChardevBackend (mainly to free the right
fields).

qemu_chr_new_from_opts() can be changed to use a non-qmp function
using the chardev class typename. Introduce qemu_chardev_add() to be
called from qemu_chr_new_from_opts() and remove the class chardev kind
field. Set the backend->type in the parse callback (when non-common
fields are added).

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@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
ui/gtk.c