]>
Commit | Line | Data |
---|---|---|
6dd75472 | 1 | # -*- Mode: Python -*- |
7e7237cd | 2 | # vim: filetype=python |
6dd75472 MA |
3 | |
4 | ## | |
5 | # = Compatibility policy | |
6 | ## | |
7 | ||
8 | ## | |
9 | # @CompatPolicyInput: | |
10 | # | |
11 | # Policy for handling "funny" input. | |
12 | # | |
13 | # @accept: Accept silently | |
14 | # @reject: Reject with an error | |
dbb675c1 | 15 | # @crash: abort() the process |
6dd75472 MA |
16 | # |
17 | # Since: 6.0 | |
18 | ## | |
19 | { 'enum': 'CompatPolicyInput', | |
dbb675c1 | 20 | 'data': [ 'accept', 'reject', 'crash' ] } |
6dd75472 MA |
21 | |
22 | ## | |
23 | # @CompatPolicyOutput: | |
24 | # | |
25 | # Policy for handling "funny" output. | |
26 | # | |
27 | # @accept: Pass on unchanged | |
28 | # @hide: Filter out | |
29 | # | |
30 | # Since: 6.0 | |
31 | ## | |
32 | { 'enum': 'CompatPolicyOutput', | |
33 | 'data': [ 'accept', 'hide' ] } | |
34 | ||
35 | ## | |
36 | # @CompatPolicy: | |
37 | # | |
38 | # Policy for handling deprecated management interfaces. | |
39 | # | |
40 | # This is intended for testing users of the management interfaces. | |
41 | # | |
42 | # Limitation: covers only syntactic aspects of QMP, i.e. stuff tagged | |
43 | # with feature 'deprecated'. We may want to extend it to cover | |
1428502c | 44 | # semantic aspects and CLI. |
6dd75472 | 45 | # |
aa237044 MA |
46 | # Limitation: deprecated-output policy @hide is not implemented for |
47 | # enumeration values. They behave the same as with policy @accept. | |
b6c18755 | 48 | # |
6dd75472 MA |
49 | # @deprecated-input: how to handle deprecated input (default 'accept') |
50 | # @deprecated-output: how to handle deprecated output (default 'accept') | |
57df0dff MA |
51 | # @unstable-input: how to handle unstable input (default 'accept') |
52 | # (since 6.2) | |
53 | # @unstable-output: how to handle unstable output (default 'accept') | |
54 | # (since 6.2) | |
6dd75472 MA |
55 | # |
56 | # Since: 6.0 | |
57 | ## | |
58 | { 'struct': 'CompatPolicy', | |
59 | 'data': { '*deprecated-input': 'CompatPolicyInput', | |
57df0dff MA |
60 | '*deprecated-output': 'CompatPolicyOutput', |
61 | '*unstable-input': 'CompatPolicyInput', | |
62 | '*unstable-output': 'CompatPolicyOutput' } } |