diff options
| author | Eric Blake <eblake@redhat.com> | 2015-05-14 06:50:59 -0600 |
|---|---|---|
| committer | Markus Armbruster <armbru@redhat.com> | 2015-05-14 18:21:21 +0200 |
| commit | 857af5f06c3fb097d1bb6bc8a23b9992aac99e75 (patch) | |
| tree | 7007532f36bdb0ab5194e4fbe2f47764b0f74b17 /scripts/qapi-types.py | |
| parent | bb33729043ceda56b4068db13bdc17786ebd0ed0 (diff) | |
| download | focaccia-qemu-857af5f06c3fb097d1bb6bc8a23b9992aac99e75.tar.gz focaccia-qemu-857af5f06c3fb097d1bb6bc8a23b9992aac99e75.zip | |
qapi: Support downstream flat unions
Enhance the testsuite to cover downstream flat unions, including the base type, discriminator name and type, and branch name and type. 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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py index 5b0bc5d353..13e4b530f9 100644 --- a/scripts/qapi-types.py +++ b/scripts/qapi-types.py @@ -213,7 +213,7 @@ struct %(name)s void *data; ''', name=name, - discriminator_type_name=discriminator_type_name) + discriminator_type_name=c_name(discriminator_type_name)) for key in typeinfo: ret += mcgen(''' |