aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi/introspect.py
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2020-03-17 12:54:45 +0100
committerMarkus Armbruster <armbru@redhat.com>2020-03-17 21:25:47 +0100
commit84ab00868798a65e19d76d3cb5f1552c6b25ceb4 (patch)
treea8bd528f121db13e9b333da39091db2ca07cc4e7 /scripts/qapi/introspect.py
parent645178c0697fb0a7805c090745de9925d935cd1b (diff)
downloadqemu-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.py2
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,