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
..
2016-10-07 10:05:54 +02:00
2017-01-31 13:03:42 +04:00
2016-02-04 17:01:04 +00:00
2016-07-11 10:40:29 +01:00
2017-01-31 13:03:42 +04:00
2016-02-04 17:01:04 +00:00
2016-03-08 12:20:11 +01:00
2016-06-03 08:23:26 +02:00
2016-02-04 17:01:04 +00:00
2014-09-16 08:07:05 +02:00
2017-01-13 10:56:17 +00:00
2016-09-23 11:42:52 +08:00
2016-03-01 08:19:07 +01:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2016-02-23 12:43:05 +00:00
2016-02-04 17:01:04 +00:00