mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user