mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
add qemu_chr_set_echo
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
committed by
Anthony Liguori
parent
d55dbc3acd
commit
c48855e140
@@ -2558,6 +2558,13 @@ CharDriverState *qemu_chr_open(const char *label, const char *filename, void (*i
|
||||
return chr;
|
||||
}
|
||||
|
||||
void qemu_chr_set_echo(struct CharDriverState *chr, bool echo)
|
||||
{
|
||||
if (chr->chr_set_echo) {
|
||||
chr->chr_set_echo(chr, echo);
|
||||
}
|
||||
}
|
||||
|
||||
void qemu_chr_close(CharDriverState *chr)
|
||||
{
|
||||
QTAILQ_REMOVE(&chardevs, chr, next);
|
||||
|
||||
Reference in New Issue
Block a user