diff options
author | Amit Shah <amit.shah@redhat.com> | 2013-08-28 15:18:29 +0530 |
---|---|---|
committer | Amit Shah <amit.shah@redhat.com> | 2013-09-05 18:30:31 +0530 |
commit | 7ba9addc165b37b764baa08c02518b15b2361707 (patch) | |
tree | adee9f485c2722188052016324ed4951ada5c949 /include | |
parent | aaa6a40194e9f204cb853f64ef3c1e170bb014e8 (diff) | |
download | hqemu-7ba9addc165b37b764baa08c02518b15b2361707.zip hqemu-7ba9addc165b37b764baa08c02518b15b2361707.tar.gz |
char: move backends' io watch tag to CharDriverState
All the backends implement an io watcher tag for callbacks. Move it to
CharDriverState from each backend's struct to make accessing the tag from
backend-neutral functions easier.
This will be used later to cancel a callback on chardev detach from a
frontend.
CC: <qemu-stable@nongnu.org>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sysemu/char.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sysemu/char.h b/include/sysemu/char.h index 8053130..ad101d9 100644 --- a/include/sysemu/char.h +++ b/include/sysemu/char.h @@ -78,6 +78,7 @@ struct CharDriverState { int explicit_be_open; int avail_connections; int is_mux; + guint fd_in_tag; QemuOpts *opts; QTAILQ_ENTRY(CharDriverState) next; }; |