commit | bcd82a968fbf7d8156eefbae3f3aab59ad576fa2 | [log] [tgz] |
---|---|---|
author | Fam Zheng <famz@redhat.com> | Fri Apr 22 21:53:52 2016 +0800 |
committer | Kevin Wolf <kwolf@redhat.com> | Fri Apr 22 16:43:42 2016 +0200 |
tree | 02800cce1b1c71a844b5e501fb968b189c3ac89a | |
parent | ee1e0f8e5d3682c561edcdceccff72b9d9b16d8b [diff] [blame] |
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>
diff --git a/iohandler.c b/iohandler.c index 3f23433..f2fc8a9 100644 --- a/iohandler.c +++ b/iohandler.c
@@ -44,6 +44,12 @@ } } +AioContext *iohandler_get_aio_context(void) +{ + iohandler_init(); + return iohandler_ctx; +} + GSource *iohandler_get_g_source(void) { iohandler_init();