[keep the original commit body, but change the title:] qapi: Convert QType into QAPI built-in enum type
Signed-off-by: Eric Blake <ebl...@redhat.com> --- 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