mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
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>
This commit is contained in:
parent
c90e9392ef
commit
4d43a603c7
56 changed files with 664 additions and 623 deletions
|
@ -16,6 +16,7 @@
|
|||
#include "hw/usb.h"
|
||||
#include "hw/usb/desc.h"
|
||||
#include "chardev/char-serial.h"
|
||||
#include "chardev/char-fe.h"
|
||||
|
||||
//#define DEBUG_Serial
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue