mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06: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:
parent
d55dbc3acd
commit
c48855e140
3 changed files with 10 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue