Patchwork [v8,01/26] cleanup object.h: include error.h directly

login
register
mail settings
Submitter Michael S. Tsirkin
Date Oct. 3, 2013, 3:04 p.m.
Message ID <1380812639-3868-2-git-send-email-mst@redhat.com>
Download mbox | patch
Permalink /patch/280373/
State New
Headers show

Comments

Michael S. Tsirkin - Oct. 3, 2013, 3:04 p.m.
From: Igor Mammedov <imammedo@redhat.com>

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>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 include/qom/object.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;