]> git.proxmox.com Git - mirror_qemu.git/commit - net/slirp.c
char: move CharBackend handling in char-fe unit
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 26 Jan 2017 14:26:44 +0000 (18:26 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 2 Jun 2017 07:33:53 +0000 (11:33 +0400)
commit4d43a603c71d0eb92534bc82b72933f329d8a64c
tree4f3e84aa4a23374078d04797438b0389cd9460f1
parentc90e9392efa6579e714fe9aa2993e7d89e3792dc
char: move CharBackend handling in char-fe unit

Move all the frontend struct and methods to a seperate unit. This avoids
accidentally mixing backend and frontend calls, and helps with readabilty.

Make qemu_chr_replay() a macro shared by both char and char-fe.

Export qemu_chr_write(), and use a macro for qemu_chr_write_all()

(nb: yes, CharBackend is for char frontend :)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
56 files changed:
backends/rng-egd.c
chardev/Makefile.objs
chardev/char-fe.c [new file with mode: 0644]
chardev/char.c
gdbstub.c
hw/arm/omap2.c
hw/arm/pxa2xx.c
hw/arm/strongarm.c
hw/char/cadence_uart.c
hw/char/debugcon.c
hw/char/digic-uart.c
hw/char/escc.c
hw/char/etraxfs_ser.c
hw/char/exynos4210_uart.c
hw/char/grlib_apbuart.c
hw/char/ipoctal232.c
hw/char/lm32_juart.c
hw/char/lm32_uart.c
hw/char/mcf_uart.c
hw/char/milkymist-uart.c
hw/char/parallel.c
hw/char/pl011.c
hw/char/sclpconsole-lm.c
hw/char/sclpconsole.c
hw/char/sh_serial.c
hw/char/spapr_vty.c
hw/char/terminal3270.c
hw/char/virtio-console.c
hw/char/xen_console.c
hw/char/xilinx_uartlite.c
hw/core/qdev-properties-system.c
hw/ipmi/ipmi_bmc_extern.c
hw/misc/ivshmem.c
hw/usb/ccid-card-passthru.c
hw/usb/dev-serial.c
hw/usb/redirect.c
hw/virtio/vhost-user.c
include/chardev/char-fe.h [new file with mode: 0644]
include/chardev/char-mux.h
include/chardev/char.h
include/hw/char/bcm2835_aux.h
include/hw/char/cadence_uart.h
include/hw/char/digic-uart.h
include/hw/char/imx_serial.h
include/hw/char/serial.h
include/hw/char/stm32f2xx_usart.h
monitor.c
net/colo-compare.c
net/filter-mirror.c
net/slirp.c
net/vhost-user.c
qtest.c
slirp/slirp.c
tests/test-char.c
tests/vhost-user-test.c
ui/console.c