2021-03-18 15:55:10 +00:00
|
|
|
# -*- Mode: Python -*-
|
|
|
|
|
|
|
|
##
|
|
|
|
# = Compatibility policy
|
|
|
|
##
|
|
|
|
|
|
|
|
##
|
|
|
|
# @CompatPolicyInput:
|
|
|
|
#
|
|
|
|
# Policy for handling "funny" input.
|
|
|
|
#
|
|
|
|
# @accept: Accept silently
|
|
|
|
# @reject: Reject with an error
|
2021-03-18 15:55:19 +00:00
|
|
|
# @crash: abort() the process
|
2021-03-18 15:55:10 +00:00
|
|
|
#
|
|
|
|
# Since: 6.0
|
|
|
|
##
|
|
|
|
{ 'enum': 'CompatPolicyInput',
|
2021-03-18 15:55:19 +00:00
|
|
|
'data': [ 'accept', 'reject', 'crash' ] }
|
2021-03-18 15:55:10 +00:00
|
|
|
|
|
|
|
##
|
|
|
|
# @CompatPolicyOutput:
|
|
|
|
#
|
|
|
|
# Policy for handling "funny" output.
|
|
|
|
#
|
|
|
|
# @accept: Pass on unchanged
|
|
|
|
# @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
|
|
|
|
# with feature 'deprecated'. We may want to extend it to cover
|
|
|
|
# semantic aspects, CLI, and experimental features.
|
|
|
|
#
|
|
|
|
# @deprecated-input: how to handle deprecated input (default 'accept')
|
|
|
|
# @deprecated-output: how to handle deprecated output (default 'accept')
|
|
|
|
#
|
|
|
|
# Since: 6.0
|
|
|
|
##
|
|
|
|
{ 'struct': 'CompatPolicy',
|
|
|
|
'data': { '*deprecated-input': 'CompatPolicyInput',
|
|
|
|
'*deprecated-output': 'CompatPolicyOutput' } }
|