qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH] fixup! qapi: Convert QType into qapi builtin enum t


From: Eric Blake
Subject: [Qemu-devel] [PATCH] fixup! qapi: Convert QType into qapi builtin enum type
Date: Wed, 18 Nov 2015 17:19:56 -0700

[keep the original commit body, but change the title:]

qapi: Convert QType into QAPI built-in enum type

Signed-off-by: Eric Blake <address@hidden>
---
 include/qemu/typedefs.h | 1 +
 scripts/qapi-types.py   | 3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h
index 6b1093d..3c88a05 100644
--- a/include/qemu/typedefs.h
+++ b/include/qemu/typedefs.h
@@ -80,6 +80,7 @@ typedef struct QEMUSGList QEMUSGList;
 typedef struct QEMUSizedBuffer QEMUSizedBuffer;
 typedef struct QEMUTimerListGroup QEMUTimerListGroup;
 typedef struct QEMUTimer QEMUTimer;
+typedef struct QObject QObject;
 typedef struct Range Range;
 typedef struct RAMBlock RAMBlock;
 typedef struct SerialState SerialState;
diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py
index 99346ad..82635b0 100644
--- a/scripts/qapi-types.py
+++ b/scripts/qapi-types.py
@@ -326,8 +326,7 @@ fdef.write(mcgen('''
 fdecl.write(mcgen('''
 #include <stdbool.h>
 #include <stdint.h>
-
-typedef struct QObject QObject;
+#include "qemu/typedefs.h"
 '''))

 schema = QAPISchema(input_file)
-- 
2.4.3




reply via email to

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