diff mbox

cleanup object.h: include error.h directly

Message ID 1380642272-12161-1-git-send-email-imammedo@redhat.com
State New
Headers show

Commit Message

Igor Mammedov Oct. 1, 2013, 3:44 p.m. UTC
qapi/error.h is simple enough to be included in qom/object.h
direcly and prepares qom/object.h to use Error typedef.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
---
it allows to drop 1-2/patches from ACPI tables in QEMU series
with following "qom: pull in qemu/typedefs" applying cleanly on
top instead of jugling with typedefs.h, doc comments and
extending typedefs.h hack further when it's not necessary.

---
 include/qom/object.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/include/qom/object.h b/include/qom/object.h
index 1a7b71a..d9a0063 100644
--- a/include/qom/object.h
+++ b/include/qom/object.h
@@ -18,9 +18,9 @@ 
 #include <stdint.h>
 #include <stdbool.h>
 #include "qemu/queue.h"
+#include "qapi/error.h"
 
 struct Visitor;
-struct Error;
 
 struct TypeImpl;
 typedef struct TypeImpl *Type;