qemu/backends
Marc-André Lureau 0b663b7d77 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>
2017-01-31 13:03:42 +04:00
..
baum.c char: remove class kind field 2017-01-31 13:03:42 +04:00
cryptodev-builtin.c cryptodev: wrap the ready flag 2017-01-10 07:02:52 +02:00
cryptodev.c cryptodev: wrap the ready flag 2017-01-10 07:02:52 +02:00
hostmem-file.c hostmem-file: Register TYPE_MEMORY_BACKEND_FILE properties as class properties 2016-10-17 15:48:40 -02:00
hostmem-ram.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
hostmem.c monitor: fix qmp/hmp query-memdev not reporting IDs of memory backends 2017-01-12 15:35:06 -02:00
Makefile.objs cryptodev: introduce a new cryptodev backend 2016-10-30 20:06:22 +02:00
msmouse.c char: remove class kind field 2017-01-31 13:03:42 +04:00
rng-egd.c char: rename CharDriverState Chardev 2017-01-27 18:07:59 +01:00
rng-random.c rng-random: rename RndRandom to RngRandom 2016-05-23 12:18:43 +05:30
rng.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
testdev.c char: remove class kind field 2017-01-31 13:03:42 +04:00
tpm.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00