The query language allows querying whether a member is optional by using
the '*' "operator" but the dumper script didn't output those query
strings.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
scripts/qemu-replies-tool.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/scripts/qemu-replies-tool.py b/scripts/qemu-replies-tool.py
index 1fcd2c4982..6d474a83f2 100755
--- a/scripts/qemu-replies-tool.py
+++ b/scripts/qemu-replies-tool.py
@@ -336,6 +336,10 @@ def dump_qmp_probe_strings_iter(name, cur, trace, schema):
membpath = "%s/%s" % (cur, memb['name'])
print(membpath)
+ # object members can be queried for optionality by '*'
+ if 'default' in memb:
+ print("%s/*%s" % (cur, memb['name']))
+
for f in memb.get('features', []):
print('%s/$%s' % (membpath, f))
--
2.48.1