summaryrefslogtreecommitdiff
path: root/testdata/xmlparser/generic.oxm
blob: 9d2d860c96a34e89d43c2bdabbc30c29f418fefc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!--<?xml version="1.0" standalone="yes"?>-->
<typesystem name="color">
	<types>
		<struct name="color">
			<field name="r" type="int"/>
			<field name="g" type="int"/>
			<field name="b" type="int"/>
		</struct>
	</types>
	<constants>
		<constant name="zero" value="0" type="int" />
		<constant name="zeros" value="[0, 0, 0]" type="int[]" />
		<constant name="manyZeros" value="[[0, 0], [0, 0], [0, 0]]" type="int[][]" />
		<constant name="black" value="[zero, zero, zero]" type="color" />
	</constants>
	<types>
		<struct name="structWithColor">
			<field name="color" type="color" default="black" />
		</struct>
	</types>
	<constants>
		<constant name="blackStructWithColor" value="[color=black]" type="structWithColor" />
	</constants>
</typesystem>