diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2010-12-23 13:42:48 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-02-01 16:50:43 -0600 |
commit | c48855e1404e9b5857e07b7839f806fa98b4abdc (patch) | |
tree | 66ca46697fe88b69c8d6f2c9e501e7f499bdc63a /qemu-char.c | |
parent | d55dbc3acdaf92b42c7fd077c8b6c1392131c043 (diff) | |
download | qemu-c48855e1404e9b5857e07b7839f806fa98b4abdc.zip qemu-c48855e1404e9b5857e07b7839f806fa98b4abdc.tar.gz qemu-c48855e1404e9b5857e07b7839f806fa98b4abdc.tar.bz2 |
add qemu_chr_set_echo
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-char.c')
-rw-r--r-- | qemu-char.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/qemu-char.c b/qemu-char.c index b570d60..b95cfdc 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -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); |