]> git.ipfire.org Git - thirdparty/qemu.git/commit
qapi: Lift features into QAPISchemaEntity
authorMarkus Armbruster <armbru@redhat.com>
Thu, 24 Oct 2019 11:02:35 +0000 (13:02 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 29 Oct 2019 06:35:16 +0000 (07:35 +0100)
commitb3cdff10e5e82ba7b99c59ab3089883f6bb85ed8
tree5f99a236ac86c6a73286c05e00e63cae7a670990
parentad1ecfc6794bddd512f6f0ce400e3018d89e167b
qapi: Lift features into QAPISchemaEntity

Commit 6a8c0b5102 "qapi: Add feature flags to struct types" added
features to QAPISchemaObjectType.  Commit a95daa5093 "qapi: Add
feature flags to commands in qapi" added them to QAPISchemaCommand,
duplicating the code.  Tolerable, but the duplication will only get
worse as we add features to more definitions.

To de-duplicate, lift features from QAPISchemaObjectType and
QAPISchemaCommand into QAPISchemaEntity.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20191024110237.30963-18-armbru@redhat.com>
scripts/qapi/schema.py