diff options
author | Markus Armbruster <armbru@redhat.com> | 2020-03-17 12:54:45 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2020-03-17 21:25:47 +0100 |
commit | 84ab00868798a65e19d76d3cb5f1552c6b25ceb4 (patch) | |
tree | a8bd528f121db13e9b333da39091db2ca07cc4e7 /scripts/qapi/introspect.py | |
parent | 645178c0697fb0a7805c090745de9925d935cd1b (diff) | |
download | qemu-84ab00868798a65e19d76d3cb5f1552c6b25ceb4.zip qemu-84ab00868798a65e19d76d3cb5f1552c6b25ceb4.tar.gz qemu-84ab00868798a65e19d76d3cb5f1552c6b25ceb4.tar.bz2 |
qapi: Add feature flags to struct members
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20200317115459.31821-21-armbru@redhat.com>
Diffstat (limited to 'scripts/qapi/introspect.py')
-rw-r--r-- | scripts/qapi/introspect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qapi/introspect.py b/scripts/qapi/introspect.py index a3fa986..23652be 100644 --- a/scripts/qapi/introspect.py +++ b/scripts/qapi/introspect.py @@ -173,7 +173,7 @@ const QLitObject %(c_name)s = %(c_string)s; obj = {'name': member.name, 'type': self._use_type(member.type)} if member.optional: obj['default'] = None - return _make_tree(obj, member.ifcond, None) + return _make_tree(obj, member.ifcond, member.features) def _gen_variants(self, tag_name, variants): return {'tag': tag_name, |