qapi-visit: Honor prefix of discriminator enum
commit9d3524b39e1fe5f3bb7a990ad7841e469e954a3b
authorEric Blake <eblake@redhat.com>
Tue, 16 Feb 2016 23:39:25 +0000 (16 16:39 -0700)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 19 Feb 2016 10:08:56 +0000 (19 11:08 +0100)
tree69b1e62876d7f4d04a831c7b0634f1912ca23640
parentdd5e38b19d7cb07d317e1285941d8245c01da540
qapi-visit: Honor prefix of discriminator enum

When we added support for a user-specified prefix for an enum
type (commit 351d36e), we forgot to teach the qapi-visit code
to honor that prefix in the case of using a prefixed enum as
the discriminator for a flat union.  While there is still some
on-list debate on whether we want to keep prefixes, we should
at least make it work as long as it is still part of the code
base.

Reported-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1455665965-27638-1-git-send-email-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi-visit.py
tests/qapi-schema/qapi-schema-test.json
tests/qapi-schema/qapi-schema-test.out