summaryrefslogtreecommitdiff
path: root/scripts/qapi-types.py
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2015-05-14 06:50:58 -0600
committerMarkus Armbruster <armbru@redhat.com>2015-05-14 18:21:17 +0200
commitbb33729043ceda56b4068db13bdc17786ebd0ed0 (patch)
treea51b7255465b493421a475999946eb5d50ca6ab4 /scripts/qapi-types.py
parent83a02706bb1fd31c93eab755de543dfe228682d4 (diff)
downloadqemu-bb33729043ceda56b4068db13bdc17786ebd0ed0.tar.gz
qapi: Support downstream simple unions
Enhance the testsuite to cover downstream simple unions, including when a union branch is a downstream name. Update the generator to mangle the union names in the appropriate places. Signed-off-by: Eric Blake <eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'scripts/qapi-types.py')
-rw-r--r--scripts/qapi-types.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py
index 51181512bf..5b0bc5d353 100644
--- a/scripts/qapi-types.py
+++ b/scripts/qapi-types.py
@@ -193,7 +193,7 @@ const int %(name)s_qtypes[QTYPE_MAX] = {
def generate_union(expr, meta):
- name = expr[meta]
+ name = c_name(expr[meta])
typeinfo = expr['data']
base = expr.get('base')