diff options
| author | Hans de Goede | 2013-03-26 11:07:57 +0100 |
|---|---|---|
| committer | Anthony Liguori | 2013-03-27 16:26:49 +0100 |
| commit | 8e25daa87ac98c9070365b42dcfc070e47fca934 (patch) | |
| tree | 31c74f981117295571ac28d353e8512b8fcc30e2 /include | |
| parent | qemu-char: Automatically do fe_open / fe_close on qemu_chr_add_handlers (diff) | |
| download | qemu-8e25daa87ac98c9070365b42dcfc070e47fca934.tar.gz qemu-8e25daa87ac98c9070365b42dcfc070e47fca934.tar.xz qemu-8e25daa87ac98c9070365b42dcfc070e47fca934.zip | |
qemu-char: Cleanup: consolidate fe_open/fe_close into fe_set_open
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Message-id: 1364292483-16564-6-git-send-email-hdegoede@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/char/char.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/include/char/char.h b/include/char/char.h index 3cd2aef77d..a726ddc011 100644 --- a/include/char/char.h +++ b/include/char/char.h @@ -129,21 +129,12 @@ void qemu_chr_delete(CharDriverState *chr); void qemu_chr_fe_set_echo(struct CharDriverState *chr, bool echo); /** - * @qemu_chr_fe_open: + * @qemu_chr_fe_set_open: * - * Open a character backend. This function call is an indication that the - * front end is ready to begin doing I/O. + * Set character frontend open status. This is an indication that the + * front end is ready (or not) to begin doing I/O. */ -void qemu_chr_fe_open(struct CharDriverState *chr); - -/** - * @qemu_chr_fe_close: - * - * Close a character backend. This function call indicates that the front end - * no longer is able to process I/O. To process I/O again, the front end will - * call @qemu_chr_fe_open. - */ -void qemu_chr_fe_close(struct CharDriverState *chr); +void qemu_chr_fe_set_open(struct CharDriverState *chr, int fe_open); /** * @qemu_chr_fe_printf: |
