qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v7 01/27] qemu: add Error to typedefs


From: Michael S. Tsirkin
Subject: [Qemu-devel] [PATCH v7 01/27] qemu: add Error to typedefs
Date: Wed, 2 Oct 2013 00:26:14 +0300

This is so qom headers can use it without pulling in
extra headers.

Reviewed-by: Paolo Bonzini <address@hidden>
Reviewed-by: Gerd Hoffmann <address@hidden>
Tested-by: Gerd Hoffmann <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
---
 include/qapi/error.h    | 6 ++++--
 include/qemu/typedefs.h | 1 +
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/include/qapi/error.h b/include/qapi/error.h
index 7d4c696..b923a5f 100644
--- a/include/qapi/error.h
+++ b/include/qapi/error.h
@@ -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
diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h
index a4c1b84..46c3599 100644
--- a/include/qemu/typedefs.h
+++ b/include/qemu/typedefs.h
@@ -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;
 
-- 
MST




reply via email to

[Prev in Thread] Current Thread [Next in Thread]