Lines Matching refs:type
33 # object's variants; or the type of a member may change from a generic
34 # string into a specific enum or from one specific type into an
35 # alternate that includes the original type alongside something else.
38 # entity in the ABI: command, event, type, ...
57 # This is a @SchemaInfo's meta type, i.e. the kind of entity it
60 # @builtin: a predefined type such as 'int' or 'bool'.
62 # @enum: an enumeration type
64 # @array: an array type
66 # @object: an object type (struct or union)
68 # @alternate: an alternate type
86 # names, type names are not part of the wire ABI. Consequently,
87 # type names are meaningless strings here, although they are still
88 # guaranteed unique regardless of @meta-type.
90 # @meta-type: the entity's meta type, inherited from @base.
99 'base': { 'name': 'str', 'meta-type': 'SchemaMetaType',
101 'discriminator': 'meta-type',
114 # Additional SchemaInfo members for meta-type 'builtin'.
116 # @json-type: the JSON type used for this type on the wire.
121 'data': { 'json-type': 'JSONType' } }
128 # type 'value'.
139 # Additional SchemaInfo members for meta-type 'enum'.
141 # @members: the enum type's members, in no particular order (since
144 # @values: the enumeration type's member names, in no particular
152 # Values of this type are JSON string on the wire.
158 'values': { 'type': [ 'str' ],
179 # Additional SchemaInfo members for meta-type 'array'.
181 # @element-type: the array type's element type.
183 # Values of this type are JSON array on the wire.
188 'data': { 'element-type': 'str' } }
193 # Additional SchemaInfo members for meta-type 'object'.
195 # @members: the object type's (non-variant) members, in no particular
198 # @tag: the name of the member serving as type tag. An element of
202 # the type tag's value. Present exactly when @tag is present.
204 # from the order of the values of the enum type of the @tag.
206 # Values of this type are JSON object on the wire.
222 # @type: the name of the member's type.
236 'data': { 'name': 'str', 'type': 'str', '*default': 'any',
237 # @default's type must be null or match @type
243 # The variant members for a value of the type tag.
245 # @case: a value of the type tag.
247 # @type: the name of the object type that provides the variant members
248 # when the type tag has value @case.
253 'data': { 'case': 'str', 'type': 'str' } }
258 # Additional SchemaInfo members for meta-type 'alternate'.
260 # @members: the alternate type's members, in no particular order. The
276 # @type: the name of the member's type.
281 'data': { 'type': 'str' } }
286 # Additional SchemaInfo members for meta-type 'command'.
288 # @arg-type: the name of the object type that provides the command's
291 # @ret-type: the name of the command's result type.
302 'data': { 'arg-type': 'str', 'ret-type': 'str',
308 # Additional SchemaInfo members for meta-type 'event'.
310 # @arg-type: the name of the object type that provides the event's
316 'data': { 'arg-type': 'str' } }