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>
Showing
- backends/rng-egd.c 1 addition, 1 deletionbackends/rng-egd.c
- chardev/Makefile.objs 1 addition, 0 deletionschardev/Makefile.objs
- chardev/char-fe.c 358 additions, 0 deletionschardev/char-fe.c
- chardev/char.c 1 addition, 342 deletionschardev/char.c
- gdbstub.c 1 addition, 0 deletionsgdbstub.c
- hw/arm/omap2.c 1 addition, 1 deletionhw/arm/omap2.c
- hw/arm/pxa2xx.c 1 addition, 1 deletionhw/arm/pxa2xx.c
- hw/arm/strongarm.c 1 addition, 0 deletionshw/arm/strongarm.c
- hw/char/cadence_uart.c 1 addition, 0 deletionshw/char/cadence_uart.c
- hw/char/debugcon.c 1 addition, 1 deletionhw/char/debugcon.c
- hw/char/digic-uart.c 1 addition, 1 deletionhw/char/digic-uart.c
- hw/char/escc.c 1 addition, 0 deletionshw/char/escc.c
- hw/char/etraxfs_ser.c 1 addition, 1 deletionhw/char/etraxfs_ser.c
- hw/char/exynos4210_uart.c 1 addition, 0 deletionshw/char/exynos4210_uart.c
- hw/char/grlib_apbuart.c 1 addition, 1 deletionhw/char/grlib_apbuart.c
- hw/char/ipoctal232.c 1 addition, 1 deletionhw/char/ipoctal232.c
- hw/char/lm32_juart.c 1 addition, 1 deletionhw/char/lm32_juart.c
- hw/char/lm32_uart.c 1 addition, 1 deletionhw/char/lm32_uart.c
- hw/char/mcf_uart.c 1 addition, 1 deletionhw/char/mcf_uart.c
- hw/char/milkymist-uart.c 1 addition, 1 deletionhw/char/milkymist-uart.c
Loading
Please register or sign in to comment