@@ -13,14 +13,16 @@
#define ERROR_H
#include "qemu/compiler.h"
+#include "qemu/typedefs.h"
#include "qapi-types.h"
#include <stdbool.h>
/**
- * A class representing internal errors within QEMU. An error has a ErrorClass
+ * Error:
+ * An object representing internal errors within QEMU. An error has a ErrorClass
* code and a human message.
*/
-typedef struct Error Error;
+struct Error;
/**
* Set an indirect pointer to an error given a ErrorClass value and a
@@ -7,6 +7,7 @@ typedef struct QEMUTimer QEMUTimer;
typedef struct QEMUTimerListGroup QEMUTimerListGroup;
typedef struct QEMUFile QEMUFile;
typedef struct QEMUBH QEMUBH;
+typedef struct Error Error;
typedef struct AioContext AioContext;