]> git.ipfire.org Git - thirdparty/qemu.git/commit
qapi: Tools for sets of special feature flags in generated code
authorMarkus Armbruster <armbru@redhat.com>
Thu, 28 Oct 2021 10:25:15 +0000 (12:25 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 29 Oct 2021 13:56:29 +0000 (15:56 +0200)
commitc67db1ed16ff5a7c1b186caa754e0c738aa945b8
tree49b8efb6f3c2360b238b361ef9bbf9448b3355dd
parent9bafe07bc8b00ce9ba5ea6f4c590239c579d83ee
qapi: Tools for sets of special feature flags in generated code

New enum QapiSpecialFeature enumerates the special feature flags.

New helper gen_special_features() returns code to represent a
collection of special feature flags as a bitset.

The next few commits will put them to use.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-Id: <20211028102520.747396-5-armbru@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
include/qapi/util.h
scripts/qapi/gen.py
scripts/qapi/schema.py