qemu/hw/bt
Marc-André Lureau a4afa548fc char: move front end handlers in CharBackend
Since the hanlders are associated with a CharBackend, rather than the
CharDriverState, it is more appropriate to store in CharBackend. This
avoids the handler copy dance in qemu_chr_fe_set_handlers() then
mux_chr_update_read_handler(), by storing the CharBackend pointer
directly.

Also a mux CharDriver should go through mux->backends[focused], since
chr->be will stay NULL. Before that, it was possible to call
chr->handler by mistake with surprising results, for ex through
qemu_chr_be_can_write(), which would result in calling the last set
handler front end, not the one with focus.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20161022095318.17775-22-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2016-10-24 15:46:10 +02:00
..
core.c hw: Clean up includes 2016-01-29 15:07:25 +00:00
hci-csr.c char: move front end handlers in CharBackend 2016-10-24 15:46:10 +02:00
hci.c hw/bt/hci: spelling fix: endianness 2016-09-13 18:12:34 +03:00
hid.c hw: Clean up includes 2016-01-29 15:07:25 +00:00
l2cap.c hw/bt: Don't use cpu_to_*w() and *_to_cpup() 2016-07-12 15:08:53 +01:00
Makefile.objs hw: move target-independent files to subdirectories 2013-04-08 18:13:12 +02:00
sdp.c qemu-common: stop including qemu/host-utils.h from qemu-common.h 2016-05-19 16:42:28 +02:00