compat.json 1.6 KB

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