mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-03-04 09:04:39 -07:00
qapi: Enforce command naming rules
Command names should be lower-case. Enforce this. Fix the fixable offenders (all in tests/), and add the remainder to pragma command-name-exceptions. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20210323094025.3569441-25-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
e744708a77
commit
05ebf841ef
8 changed files with 62 additions and 31 deletions
|
|
@ -4,6 +4,24 @@
|
|||
# add to them!
|
||||
{ 'pragma': {
|
||||
# Commands allowed to return a non-dictionary:
|
||||
'command-name-exceptions': [
|
||||
'add_client',
|
||||
'block_passwd',
|
||||
'block_resize',
|
||||
'block_set_io_throttle',
|
||||
'client_migrate_info',
|
||||
'device_add',
|
||||
'device_del',
|
||||
'expire_password',
|
||||
'migrate_cancel',
|
||||
'netdev_add',
|
||||
'netdev_del',
|
||||
'qmp_capabilities',
|
||||
'set_link',
|
||||
'set_password',
|
||||
'system_powerdown',
|
||||
'system_reset',
|
||||
'system_wakeup' ],
|
||||
'command-returns-exceptions': [
|
||||
'human-monitor-command',
|
||||
'qom-get',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue