diff options
| author | Marc-André Lureau | 2016-12-09 09:04:51 +0100 |
|---|---|---|
| committer | Marc-André Lureau | 2017-01-31 10:03:42 +0100 |
| commit | 0b663b7d77f1a2170fe30a91e3d6de1bb769a378 (patch) | |
| tree | 25d68b2d6118898621c3c79d30b32c6534865a3a /include | |
| parent | char: rename remaining CharDriver to Chardev (diff) | |
| download | qemu-0b663b7d77f1a2170fe30a91e3d6de1bb769a378.tar.gz qemu-0b663b7d77f1a2170fe30a91e3d6de1bb769a378.tar.xz qemu-0b663b7d77f1a2170fe30a91e3d6de1bb769a378.zip | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sysemu/char.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/sysemu/char.h b/include/sysemu/char.h index b4303e7b22..31229deaca 100644 --- a/include/sysemu/char.h +++ b/include/sysemu/char.h @@ -474,7 +474,6 @@ typedef struct ChardevClass { ObjectClass parent_class; bool internal; /* TODO: eventually use TYPE_USER_CREATABLE */ - ChardevBackendKind kind; void (*parse)(QemuOpts *opts, ChardevBackend *backend, Error **errp); void (*open)(Chardev *chr, ChardevBackend *backend, |
