summaryrefslogtreecommitdiffstats
path: root/iohandler.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2016-04-22 21:53:52 +0800
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 20:03:50 -0600
commita9838399d4fc50f0e713445609441b77ec41b8e7 (patch)
treebbaa73d44d15ca33a916ee125d1e941eb5f033c1 /iohandler.c
parentac59ce0da8eb6340efb64bf5e505be44a951f9bc (diff)
downloadhqemu-a9838399d4fc50f0e713445609441b77ec41b8e7.zip
hqemu-a9838399d4fc50f0e713445609441b77ec41b8e7.tar.gz
iohandler: Introduce iohandler_get_aio_context
Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'iohandler.c')
-rw-r--r--iohandler.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/iohandler.c b/iohandler.c
index 3f23433..f2fc8a9 100644
--- a/iohandler.c
+++ b/iohandler.c
@@ -44,6 +44,12 @@ static void iohandler_init(void)
}
}
+AioContext *iohandler_get_aio_context(void)
+{
+ iohandler_init();
+ return iohandler_ctx;
+}
+
GSource *iohandler_get_g_source(void)
{
iohandler_init();
OpenPOWER on IntegriCloud