mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
aio / timers: Untangle include files
include/qemu/timer.h has no need to include main-loop.h and doing so causes an issue for the next patch. Unfortunately various files assume including timers.h will pull in main-loop.h. Untangle this mess. Signed-off-by: Alex Bligh <alex@alex.org.uk> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
ff83c66ecc
commit
6a1751b7aa
36 changed files with 39 additions and 4 deletions
|
@ -14,6 +14,7 @@
|
|||
#ifndef QEMU_AIO_H
|
||||
#define QEMU_AIO_H
|
||||
|
||||
#include "qemu/typedefs.h"
|
||||
#include "qemu-common.h"
|
||||
#include "qemu/queue.h"
|
||||
#include "qemu/event_notifier.h"
|
||||
|
@ -42,7 +43,7 @@ typedef struct AioHandler AioHandler;
|
|||
typedef void QEMUBHFunc(void *opaque);
|
||||
typedef void IOHandler(void *opaque);
|
||||
|
||||
typedef struct AioContext {
|
||||
struct AioContext {
|
||||
GSource source;
|
||||
|
||||
/* The list of registered AIO handlers */
|
||||
|
@ -72,7 +73,7 @@ typedef struct AioContext {
|
|||
|
||||
/* Thread pool for performing work and receiving completion callbacks */
|
||||
struct ThreadPool *thread_pool;
|
||||
} AioContext;
|
||||
};
|
||||
|
||||
/**
|
||||
* aio_context_new: Allocate a new AioContext.
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include "monitor/monitor.h"
|
||||
#include "qemu/hbitmap.h"
|
||||
#include "block/snapshot.h"
|
||||
#include "qemu/main-loop.h"
|
||||
|
||||
#define BLOCK_FLAG_ENCRYPT 1
|
||||
#define BLOCK_FLAG_COMPAT6 4
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#define QEMU_COROUTINE_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "qemu/typedefs.h"
|
||||
#include "qemu/queue.h"
|
||||
#include "qemu/timer.h"
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
#include "qemu/typedefs.h"
|
||||
#include "qemu-common.h"
|
||||
#include "qemu/main-loop.h"
|
||||
#include "qemu/notify.h"
|
||||
|
||||
/* timers */
|
||||
|
|
|
@ -7,6 +7,8 @@ typedef struct QEMUTimer QEMUTimer;
|
|||
typedef struct QEMUFile QEMUFile;
|
||||
typedef struct QEMUBH QEMUBH;
|
||||
|
||||
typedef struct AioContext AioContext;
|
||||
|
||||
struct Monitor;
|
||||
typedef struct Monitor Monitor;
|
||||
typedef struct MigrationParams MigrationParams;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue