qapi: Simplify gen_struct_field()pull-qapi-2015-11-02
commit32bc6879beea0b0cac6196cb15a71d206401e96d
authorEric Blake <eblake@redhat.com>
Mon, 26 Oct 2015 22:35:03 +0000 (26 16:35 -0600)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 2 Nov 2015 07:30:28 +0000 (2 08:30 +0100)
tree797e056bb817327f14abd49769c8604717b82ba6
parent5e59baf90a72cd25d38a3134edc029f4f022da74
qapi: Simplify gen_struct_field()

Rather than having all callers pass a name, type, and optional
flag, have them instead pass a QAPISchemaObjectTypeMember which
already has all that information.

No change to generated code.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1445898903-12082-25-git-send-email-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi-types.py