qapi: Enforce command naming rules
[qemu/armbru.git] / qapi / pragma.json
blob339f06794344bdece0ce15a869a59869bbe425a5
1 { 'pragma': { 'doc-required': true } }
3 # Whitelists to permit QAPI rule violations; think twice before you
4 # add to them!
5 { 'pragma': {
6     # Commands allowed to return a non-dictionary:
7     'command-name-exceptions': [
8         'add_client',
9         'block_passwd',
10         'block_resize',
11         'block_set_io_throttle',
12         'client_migrate_info',
13         'device_add',
14         'device_del',
15         'expire_password',
16         'migrate_cancel',
17         'netdev_add',
18         'netdev_del',
19         'qmp_capabilities',
20         'set_link',
21         'set_password',
22         'system_powerdown',
23         'system_reset',
24         'system_wakeup' ],
25     'command-returns-exceptions': [
26         'human-monitor-command',
27         'qom-get',
28         'query-tpm-models',
29         'query-tpm-types',
30         'ringbuf-read' ],
31     # Externally visible types whose member names may use uppercase
32     'member-name-exceptions': [     # visible in:
33         'ACPISlotType',             # query-acpi-ospm-status
34         'BlockdevVmdkAdapterType',  # blockdev-create (to match VMDK spec)
35         'BlockdevVmdkSubformat',    # blockdev-create (to match VMDK spec)
36         'QapiErrorClass',           # QMP error replies
37         'UuidInfo',                 # query-uuid
38         'X86CPURegister32'          # qom-get of x86 CPU properties
39                                     # feature-words, filtered-features
40     ] } }