diff options
author | Peter Xu | 2017-09-21 08:35:51 +0200 |
---|---|---|
committer | Paolo Bonzini | 2017-09-22 21:07:27 +0200 |
commit | 07241c205c2c0b3e5e17e883c8ae523e90d172c2 (patch) | |
tree | 87fe7df7a38164e32c8c9b5aed0db5c61ed6719e /include/chardev/char.h | |
parent | scsi: add persistent reservation manager using qemu-pr-helper (diff) | |
download | qemu-07241c205c2c0b3e5e17e883c8ae523e90d172c2.tar.gz qemu-07241c205c2c0b3e5e17e883c8ae523e90d172c2.tar.xz qemu-07241c205c2c0b3e5e17e883c8ae523e90d172c2.zip |
chardev: new qemu_chr_be_update_read_handlers()
Add a wrapper for the chr_update_read_handler().
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <1505975754-21555-2-git-send-email-peterx@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/chardev/char.h')
-rw-r--r-- | include/chardev/char.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/chardev/char.h b/include/chardev/char.h index 66dde4637e..2068ea496d 100644 --- a/include/chardev/char.h +++ b/include/chardev/char.h @@ -169,6 +169,16 @@ void qemu_chr_be_write(Chardev *s, uint8_t *buf, int len); void qemu_chr_be_write_impl(Chardev *s, uint8_t *buf, int len); /** + * @qemu_chr_be_update_read_handlers: + * + * Invoked when frontend read handlers are setup + * + * @context the gcontext that will be used to attach the watch sources + */ +void qemu_chr_be_update_read_handlers(Chardev *s, + GMainContext *context); + +/** * @qemu_chr_be_event: * * Send an event from the back end to the front end. |