diff options
author | Fam Zheng <famz@redhat.com> | 2016-04-22 21:53:52 +0800 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 20:03:50 -0600 |
commit | a9838399d4fc50f0e713445609441b77ec41b8e7 (patch) | |
tree | bbaa73d44d15ca33a916ee125d1e941eb5f033c1 /iohandler.c | |
parent | ac59ce0da8eb6340efb64bf5e505be44a951f9bc (diff) | |
download | hqemu-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.c | 6 |
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(); |