crypto: introduce some common functions for af_alg backend
[qemu/ar7.git] / tests / qapi-schema / doc-good.json
blobcfdc0a8a81ae7dc2d549c3d8af6e6a4cbbbc3e1e
1 # -*- Mode: Python -*-
2 # Positive QAPI doc comment tests
4 { 'pragma': { 'doc-required': true } }
6 ##
7 # = Section
9 # == Subsection
11 # *strong* _with emphasis_
12 # @var {in braces}
13 # * List item one
14 # - Two, multiple
15 #   lines
17 # 3. Three
18 # Still in list
20 #   Not in list
21 # - Second list
22 # Note: still in list
24 # Note: not in list
25 # 1. Third list
26 #    is numbered
28 # - another item
30 # | example
31 # | multiple lines
33 # Returns: the King
34 # Since: the first age
35 # Notes:
37 # 1. Lorem ipsum dolor sit amet
39 # 2. Ut enim ad minim veniam
41 # Duis aute irure dolor
43 # Example:
45 # -> in
46 # <- out
47 # Examples:
48 # - *verbatim*
49 # - {braces}
53 # @Enum:
54 # == Produces *invalid* texinfo
55 # @one: The _one_ {and only}
57 # @two is undocumented
59 { 'enum': 'Enum', 'data': [ 'one', 'two' ] }
62 # @Base:
63 # @base1:
64 #   the first member
66 { 'struct': 'Base', 'data': { 'base1': 'Enum' } }
69 # @Variant1:
70 # A paragraph
72 # Another paragraph (but no @var: line)
74 { 'struct': 'Variant1', 'data': { 'var1': 'str' } }
77 # @Variant2:
79 { 'struct': 'Variant2', 'data': {} }
82 # @Object:
84 { 'union': 'Object',
85   'base': 'Base',
86   'discriminator': 'base1',
87   'data': { 'one': 'Variant1', 'two': 'Variant2' } }
90 # @SugaredUnion:
92 { 'union': 'SugaredUnion',
93   'data': { 'one': 'Variant1', 'two': 'Variant2' } }
96 # == Another subsection
100 # @cmd:
101 # @arg1: the first argument
103 # @arg2: the second
104 # argument
105 # Note: @arg3 is undocumented
106 # Returns: @Object
107 # TODO: frobnicate
108 # Notes:
109 # - Lorem ipsum dolor sit amet
110 # - Ut enim ad minim veniam
112 # Duis aute irure dolor
113 # Example:
115 # -> in
116 # <- out
117 # Examples:
118 # - *verbatim*
119 # - {braces}
120 # Since: 2.10
122 { 'command': 'cmd',
123   'data': { 'arg1': 'int', '*arg2': 'str', 'arg3': 'bool' },
124   'returns': 'Object' }
127 # @cmd-boxed:
128 # If you're bored enough to read this, go see a video of boxed cats
129 # Example:
131 # -> in
133 # <- out
135 { 'command': 'cmd-boxed', 'boxed': true,
136   'data': 'Object' }