mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
qapi: Rename pragma *-whitelist to *-exceptions
Rename pragma returns-whitelist to command-returns-exceptions, and name-case-whitelist to member-name-case-exceptions. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20210323094025.3569441-20-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
ef8b3829f6
commit
b86df37478
14 changed files with 32 additions and 32 deletions
|
@ -1,4 +1,4 @@
|
|||
# Member names should be 'lower-case' unless the enum is whitelisted
|
||||
{ 'pragma': { 'name-case-whitelist': [ 'UuidInfo' ] } }
|
||||
{ 'pragma': { 'member-name-exceptions': [ 'UuidInfo' ] } }
|
||||
{ 'enum': 'UuidInfo', 'data': [ 'Value' ] } # UuidInfo is whitelisted
|
||||
{ 'enum': 'NoWayThisWillGetWhitelisted', 'data': [ 'Value' ] }
|
||||
|
|
|
@ -1 +1 @@
|
|||
pragma-value-not-list-of-str.json:3: pragma returns-whitelist must be a list of strings
|
||||
pragma-value-not-list-of-str.json:3: pragma command-returns-exceptions must be a list of strings
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
# pragma value must be list of strings
|
||||
|
||||
{ 'pragma': { 'returns-whitelist': [ 'good', [ 'bad' ] ] } }
|
||||
{ 'pragma': { 'command-returns-exceptions': [ 'good', [ 'bad' ] ] } }
|
||||
|
|
|
@ -1 +1 @@
|
|||
pragma-value-not-list.json:3: pragma name-case-whitelist must be a list of strings
|
||||
pragma-value-not-list.json:2: pragma member-name-exceptions must be a list of strings
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
# pragma value must be list
|
||||
|
||||
{ 'pragma': { 'name-case-whitelist': false } }
|
||||
{ 'pragma': { 'member-name-exceptions': false } }
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# Whitelists to permit QAPI rule violations
|
||||
{ 'pragma': {
|
||||
# Commands allowed to return a non-dictionary:
|
||||
'returns-whitelist': [
|
||||
'command-returns-exceptions': [
|
||||
'guest-get-time',
|
||||
'guest-sync' ] } }
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# we enforce that 'returns' be a dict or array of dict unless whitelisted
|
||||
|
||||
{ 'pragma': { 'returns-whitelist': [
|
||||
{ 'pragma': { 'command-returns-exceptions': [
|
||||
'human-monitor-command', 'query-tpm-models', 'guest-get-time' ] } }
|
||||
|
||||
{ 'command': 'human-monitor-command',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue