summaryrefslogtreecommitdiff
path: root/qapi/qom.json
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2020-01-10 19:30:38 +0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-01-24 20:59:16 +0100
commit1bb3d7d92c9e39ec2d45a830d8654e6ec11a60d3 (patch)
treef587d3ac149ec5e38194107a7e3f8ae074cd86c0 /qapi/qom.json
parent4df8161673dbaa1938652313c075c898a476ffe5 (diff)
qapi/qmp: add ObjectPropertyInfo.default-value
Report the default value associated with a property. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20200110153039.1379601-26-marcandre.lureau@redhat.com> [Report it as type "any", not string. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qapi/qom.json')
-rw-r--r--qapi/qom.json7
1 files changed, 6 insertions, 1 deletions
diff --git a/qapi/qom.json b/qapi/qom.json
index 32db96ffc4..1e3c2ad555 100644
--- a/qapi/qom.json
+++ b/qapi/qom.json
@@ -26,10 +26,15 @@
#
# @description: if specified, the description of the property.
#
+# @default-value: the default value, if any (since 5.0)
+#
# Since: 1.2
##
{ 'struct': 'ObjectPropertyInfo',
- 'data': { 'name': 'str', 'type': 'str', '*description': 'str' } }
+ 'data': { 'name': 'str',
+ 'type': 'str',
+ '*description': 'str',
+ '*default-value': 'any' } }
##
# @qom-list: