summaryrefslogtreecommitdiffstats
path: root/scripts/qapi-types.py
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2014-08-20 19:59:34 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2014-09-22 11:39:33 +0100
commite775ba7721181e3ff6677b91f0464968330988d9 (patch)
treee4c7f6f28212c14c028352c4e951312710d47e5e /scripts/qapi-types.py
parent7b17ce60cc58b3c20b3e708a2d69f6bbe2b4edfa (diff)
downloadhqemu-e775ba7721181e3ff6677b91f0464968330988d9.zip
hqemu-e775ba7721181e3ff6677b91f0464968330988d9.tar.gz
qapi: Allow enums in anonymous unions
Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 1408557576-14574-3-git-send-email-mreitz@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'scripts/qapi-types.py')
-rw-r--r--scripts/qapi-types.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py
index b463232..d2f815b 100644
--- a/scripts/qapi-types.py
+++ b/scripts/qapi-types.py
@@ -177,6 +177,8 @@ const int %(name)s_qtypes[QTYPE_MAX] = {
qtype = "QTYPE_QDICT"
elif find_union(qapi_type):
qtype = "QTYPE_QDICT"
+ elif find_enum(qapi_type):
+ qtype = "QTYPE_QSTRING"
else:
assert False, "Invalid anonymous union member"
OpenPOWER on IntegriCloud