• E
    qapi: Reuse code for flat union base validation · 376863ef
    Eric Blake 提交于
    Rather than open-code the check for a valid base type, we
    should reuse the common functionality. This allows for
    consistent error messages, and also makes it easier for a
    later patch to turn on support for inline anonymous base
    structures.
    
    Test flat-union-inline is updated to test only one feature
    (anonymous branch dictionaries), which can be implemented
    independently (test flat-union-bad-base already covers the
    idea of an anonymous base dictionary).
    Signed-off-by: NEric Blake <eblake@redhat.com>
    Message-Id: <1443565276-4535-10-git-send-email-eblake@redhat.com>
    Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
    376863ef
qapi.py 54.1 KB