[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
- [Qemu-devel] [PATCH v12 26/36] qapi: Change munging of CamelCase enum values, (continued)
- [Qemu-devel] [PATCH v12 26/36] qapi: Change munging of CamelCase enum values, Eric Blake, 2015/11/18
- [Qemu-devel] [PATCH v12 14/36] qapi: Remove outdated tests related to QMP/branch collisions, Eric Blake, 2015/11/18
- [Qemu-devel] [PATCH v12 23/36] qapi: Remove dead tests for max collision, Eric Blake, 2015/11/18
- [Qemu-devel] [PATCH v12 32/36] qapi: Inline _make_implicit_tag(), Eric Blake, 2015/11/18
- [Qemu-devel] [PATCH v12 30/36] qapi: Convert QType into qapi builtin enum type, Eric Blake, 2015/11/18
- [Qemu-devel] [PATCH v12 34/36] qapi: Add positive tests to qapi-schema-test, Eric Blake, 2015/11/18
- [Qemu-devel] [PATCH v12 36/36] qapi: Shorter visits of optional fields, Eric Blake, 2015/11/18
- [Qemu-devel] [PATCH v12 22/36] qapi: Don't let implicit enum MAX member collide, Eric Blake, 2015/11/18