2021-03-18 16:55:10 +01:00
|
|
|
# -*- Mode: Python -*-
|
2021-12-20 15:56:24 +01:00
|
|
|
# vim: filetype=python
|
2021-03-18 16:55:10 +01:00
|
|
|
|
|
|
|
##
|
|
|
|
# = Compatibility policy
|
|
|
|
##
|
|
|
|
|
|
|
|
##
|
|
|
|
# @CompatPolicyInput:
|
|
|
|
#
|
|
|
|
# Policy for handling "funny" input.
|
|
|
|
#
|
|
|
|
# @accept: Accept silently
|
2023-04-28 12:54:29 +02:00
|
|
|
#
|
2021-03-18 16:55:10 +01:00
|
|
|
# @reject: Reject with an error
|
2023-04-28 12:54:29 +02:00
|
|
|
#
|
2021-03-18 16:55:19 +01:00
|
|
|
# @crash: abort() the process
|
2021-03-18 16:55:10 +01:00
|
|
|
#
|
|
|
|
# Since: 6.0
|
|
|
|
##
|
|
|
|
{ 'enum': 'CompatPolicyInput',
|
2021-03-18 16:55:19 +01:00
|
|
|
'data': [ 'accept', 'reject', 'crash' ] }
|
2021-03-18 16:55:10 +01:00
|
|
|
|
|
|
|
##
|
|
|
|
# @CompatPolicyOutput:
|
|
|
|
#
|
|
|
|
# Policy for handling "funny" output.
|
|
|
|
#
|
|
|
|
# @accept: Pass on unchanged
|
2023-04-28 12:54:29 +02:00
|
|
|
#
|
2021-03-18 16:55:10 +01:00
|
|
|
# @hide: Filter out
|
|
|
|
#
|
|
|
|
# Since: 6.0
|
|
|
|
##
|
|
|
|
{ 'enum': 'CompatPolicyOutput',
|
|
|
|
'data': [ 'accept', 'hide' ] }
|
|
|
|
|
|
|
|
##
|
|
|
|
# @CompatPolicy:
|
|
|
|
#
|
|
|
|
# Policy for handling deprecated management interfaces.
|
|
|
|
#
|
|
|
|
# This is intended for testing users of the management interfaces.
|
|
|
|
#
|
|
|
|
# Limitation: covers only syntactic aspects of QMP, i.e. stuff tagged
|
2023-10-09 13:04:49 +02:00
|
|
|
# with feature 'deprecated' or 'unstable'. We may want to extend it
|
|
|
|
# to cover semantic aspects and CLI.
|
2021-03-18 16:55:10 +01:00
|
|
|
#
|
2021-10-25 06:24:04 +02:00
|
|
|
# Limitation: deprecated-output policy @hide is not implemented for
|
|
|
|
# enumeration values. They behave the same as with policy @accept.
|
2021-10-25 06:24:02 +02:00
|
|
|
#
|
2021-03-18 16:55:10 +01:00
|
|
|
# @deprecated-input: how to handle deprecated input (default 'accept')
|
2023-04-28 12:54:29 +02:00
|
|
|
#
|
|
|
|
# @deprecated-output: how to handle deprecated output (default
|
|
|
|
# 'accept')
|
|
|
|
#
|
2021-10-28 12:25:20 +02:00
|
|
|
# @unstable-input: how to handle unstable input (default 'accept')
|
2023-04-28 12:54:29 +02:00
|
|
|
# (since 6.2)
|
|
|
|
#
|
2021-10-28 12:25:20 +02:00
|
|
|
# @unstable-output: how to handle unstable output (default 'accept')
|
2023-04-28 12:54:29 +02:00
|
|
|
# (since 6.2)
|
2021-03-18 16:55:10 +01:00
|
|
|
#
|
|
|
|
# Since: 6.0
|
|
|
|
##
|
|
|
|
{ 'struct': 'CompatPolicy',
|
|
|
|
'data': { '*deprecated-input': 'CompatPolicyInput',
|
2021-10-28 12:25:20 +02:00
|
|
|
'*deprecated-output': 'CompatPolicyOutput',
|
|
|
|
'*unstable-input': 'CompatPolicyInput',
|
|
|
|
'*unstable-output': 'CompatPolicyOutput' } }
|