qapi: make the json schema files more regular.

This makes it easier to parse the schema file for tool generation:
each paragraph is either a non-docstring comment, or a docstring
immediately followed by a Python dict describing an API item.

Signed-off-by: David Anderson <dave@natulte.net>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
David Anderson 2016-09-21 21:00:19 -07:00 committed by Michael Tokarev
parent 7a488b5b24
commit a43edcf20a
2 changed files with 1 additions and 7 deletions

View File

@ -752,6 +752,7 @@
'cpu-throttle-increment': 'int', 'cpu-throttle-increment': 'int',
'tls-creds': 'str', 'tls-creds': 'str',
'tls-hostname': 'str'} } 'tls-hostname': 'str'} }
## ##
# @query-migrate-parameters # @query-migrate-parameters
# #
@ -4118,7 +4119,6 @@
# #
# Since 1.6 # Since 1.6
## ##
{ 'struct': 'RxFilterInfo', { 'struct': 'RxFilterInfo',
'data': { 'data': {
'name': 'str', 'name': 'str',
@ -4338,7 +4338,6 @@
# #
# Since: 2.1 # Since: 2.1
## ##
{ 'struct': 'Memdev', { 'struct': 'Memdev',
'data': { 'data': {
'size': 'size', 'size': 'size',

View File

@ -25,7 +25,6 @@
# Since: 1.3 # Since: 1.3
# #
## ##
{ 'struct': 'SnapshotInfo', { 'struct': 'SnapshotInfo',
'data': { 'id': 'str', 'name': 'str', 'vm-state-size': 'int', 'data': { 'id': 'str', 'name': 'str', 'vm-state-size': 'int',
'date-sec': 'int', 'date-nsec': 'int', 'date-sec': 'int', 'date-nsec': 'int',
@ -81,7 +80,6 @@
# #
# Since: 1.7 # Since: 1.7
## ##
{ 'union': 'ImageInfoSpecific', { 'union': 'ImageInfoSpecific',
'data': { 'data': {
'qcow2': 'ImageInfoSpecificQCow2', 'qcow2': 'ImageInfoSpecificQCow2',
@ -129,7 +127,6 @@
# Since: 1.3 # Since: 1.3
# #
## ##
{ 'struct': 'ImageInfo', { 'struct': 'ImageInfo',
'data': {'filename': 'str', 'format': 'str', '*dirty-flag': 'bool', 'data': {'filename': 'str', 'format': 'str', '*dirty-flag': 'bool',
'*actual-size': 'int', 'virtual-size': 'int', '*actual-size': 'int', 'virtual-size': 'int',
@ -181,7 +178,6 @@
# Since: 1.4 # Since: 1.4
# #
## ##
{ 'struct': 'ImageCheck', { 'struct': 'ImageCheck',
'data': {'filename': 'str', 'format': 'str', 'check-errors': 'int', 'data': {'filename': 'str', 'format': 'str', 'check-errors': 'int',
'*image-end-offset': 'int', '*corruptions': 'int', '*leaks': 'int', '*image-end-offset': 'int', '*corruptions': 'int', '*leaks': 'int',
@ -518,7 +514,6 @@
# #
# Since: 2.5 # Since: 2.5
## ##
{ 'struct': 'BlockDeviceTimedStats', { 'struct': 'BlockDeviceTimedStats',
'data': { 'interval_length': 'int', 'min_rd_latency_ns': 'int', 'data': { 'interval_length': 'int', 'min_rd_latency_ns': 'int',
'max_rd_latency_ns': 'int', 'avg_rd_latency_ns': 'int', 'max_rd_latency_ns': 'int', 'avg_rd_latency_ns': 'int',