From 7ba9addc165b37b764baa08c02518b15b2361707 Mon Sep 17 00:00:00 2001 From: Amit Shah Date: Wed, 28 Aug 2013 15:18:29 +0530 Subject: 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: Reviewed-by: Gerd Hoffmann Signed-off-by: Amit Shah --- include/sysemu/char.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/sysemu') diff --git a/include/sysemu/char.h b/include/sysemu/char.h index 8053130a97..ad101d9258 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; }; -- cgit v1.2.1