diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-12-09 00:50:12 +0300 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-01-31 13:01:47 +0400 |
commit | 88cace9f119b85ac2d40a8b10c24e05ccfa6da07 (patch) | |
tree | 9aa623eb65581a78d3c1d910f2a787990260c1eb /backends/baum.c | |
parent | 8cddc46990ab0310af9fb148143326f832802fca (diff) | |
download | qemu-88cace9f119b85ac2d40a8b10c24e05ccfa6da07.zip qemu-88cace9f119b85ac2d40a8b10c24e05ccfa6da07.tar.gz qemu-88cace9f119b85ac2d40a8b10c24e05ccfa6da07.tar.bz2 |
char: get rid of CharDriver
qemu_chr_new_from_opts() is modified to not need CharDriver backend[]
array, but uses instead objectified qmp_query_chardev_backends() and
char_get_class(). The alias field is moved outside in a ChardevAlias[],
similar to QDevAlias for devices.
"kind" and "parse" are moved to ChardevClass ("kind" is to be removed
next)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'backends/baum.c')
-rw-r--r-- | backends/baum.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/backends/baum.c b/backends/baum.c index 39c9365..5316c8d 100644 --- a/backends/baum.c +++ b/backends/baum.c @@ -656,6 +656,7 @@ static void char_braille_class_init(ObjectClass *oc, void *data) { ChardevClass *cc = CHARDEV_CLASS(oc); + cc->kind = CHARDEV_BACKEND_KIND_BRAILLE; cc->open = baum_chr_open; cc->chr_write = baum_chr_write; cc->chr_accept_input = baum_chr_accept_input; @@ -671,11 +672,6 @@ static const TypeInfo char_braille_type_info = { static void register_types(void) { - static const CharDriver driver = { - .kind = CHARDEV_BACKEND_KIND_BRAILLE, - }; - - register_char_driver(&driver); type_register_static(&char_braille_type_info); } |