char: update the mux handlers in class callback
commit3d9e232240f9d029d7255b5b11d3a2f61c53d0d0
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 6 Feb 2019 17:43:23 +0000 (6 18:43 +0100)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 13 Feb 2019 14:36:14 +0000 (13 15:36 +0100)
tree4a62cd65b664caad8132f4156d77097ddc871483
parent129263c6c08407747753c0c1f715917107cbcb3f
char: update the mux handlers in class callback

Instead of handling mux chardev in a special way in
qemu_chr_fe_set_handlers(), we may use the chr_update_read_handler
class callback instead.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20190206174328.9736-2-marcandre.lureau@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
chardev/char-fe.c
chardev/char-mux.c
include/chardev/char-mux.h