aboutsummaryrefslogtreecommitdiff
path: root/iohandler.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2016-04-22 21:53:52 +0800
committerKevin Wolf <kwolf@redhat.com>2016-04-22 16:43:42 +0200
commitbcd82a968fbf7d8156eefbae3f3aab59ad576fa2 (patch)
tree02800cce1b1c71a844b5e501fb968b189c3ac89a /iohandler.c
parentee1e0f8e5d3682c561edcdceccff72b9d9b16d8b (diff)
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 3f23433b5a..f2fc8a9bd6 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();