xref: /openbmc/qemu/include/sysemu/iothread.h (revision 01c22f2c)
1 /*
2  * Event loop thread
3  *
4  * Copyright Red Hat Inc., 2013
5  *
6  * Authors:
7  *  Stefan Hajnoczi   <stefanha@redhat.com>
8  *
9  * This work is licensed under the terms of the GNU GPL, version 2 or later.
10  * See the COPYING file in the top-level directory.
11  *
12  */
13 
14 #ifndef IOTHREAD_H
15 #define IOTHREAD_H
16 
17 #include "block/aio.h"
18 
19 #define TYPE_IOTHREAD "iothread"
20 
21 typedef struct IOThread IOThread;
22 
23 #define IOTHREAD(obj) \
24    OBJECT_CHECK(IOThread, obj, TYPE_IOTHREAD)
25 
26 IOThread *iothread_find(const char *id);
27 char *iothread_get_id(IOThread *iothread);
28 AioContext *iothread_get_aio_context(IOThread *iothread);
29 
30 #endif /* IOTHREAD_H */
31