]> git.proxmox.com Git - mirror_qemu.git/commit
qapi: Proper intermediate representation for modules
authorMarkus Armbruster <armbru@redhat.com>
Wed, 20 Nov 2019 18:25:49 +0000 (19:25 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 14 Jan 2020 10:01:58 +0000 (11:01 +0100)
commita9f1dd7ee001b645b81ad67217b582e51a44d545
tree770fe9332fbc10ca1806e377a2fa70bc4b05be82
parent00ca24ff9e5fc3c6ae608226908e6864ad8193a8
qapi: Proper intermediate representation for modules

Modules are represented only by their names so far.  Introduce class
QAPISchemaModule.  So far, it merely wraps the name.  The next patch
will put it to more interesting use.

Once again, arrays spice up the patch a bit.  For any other type,
@info points to the definition, which lets us map from @info to
module.  For arrays, there is no definition, and @info points to the
first use instead.  We have to use the element type's module instead,
which is only available after .check().

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20191120182551.23795-5-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
scripts/qapi/schema.py