From bcd82a968fbf7d8156eefbae3f3aab59ad576fa2 Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Fri, 22 Apr 2016 21:53:52 +0800 Subject: iohandler: Introduce iohandler_get_aio_context Signed-off-by: Fam Zheng Reviewed-by: Michael S. Tsirkin Signed-off-by: Kevin Wolf --- iohandler.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'iohandler.c') 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(); -- cgit v1.2.3