Fix cap style enumeration (bug #8857).
[free-sw/xcb/proto] / src / sync.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 Copyright (C) 2004 Mikko Torni and Josh Triplett.
4 All Rights Reserved.  See the file COPYING in this directory
5 for licensing information.
6 -->
7 <xcb header="sync" extension-xname="SYNC" extension-name="Sync"
8     major-version="3" minor-version="0">
9   <import>xproto</import>
10
11   <xidtype name="ALARM" />
12
13   <enum name="ALARMSTATE">
14     <item name="Active" />
15     <item name="Inactive" />
16     <item name="Destroyed" />
17   </enum>
18
19   <xidtype name="COUNTER" />
20
21   <enum name="TESTTYPE">
22     <item name="PositiveTransition" />
23     <item name="NegativeTransition" />
24     <item name="PositiveComparison" />
25     <item name="NegativeComparison" />
26   </enum>
27
28   <enum name="VALUETYPE">
29     <item name="Absolute" />
30     <item name="Relative" />
31   </enum>
32
33   <enum name="CA">
34     <item name="Counter">  <bit>0</bit></item>
35     <item name="ValueType"><bit>1</bit></item>
36     <item name="Value">    <bit>2</bit></item>
37     <item name="TestType"> <bit>3</bit></item>
38     <item name="Delta">    <bit>4</bit></item>
39     <item name="Events">   <bit>5</bit></item>
40   </enum>
41
42   <struct name="INT64">
43     <field type="INT32" name="hi" />
44     <field type="CARD32" name="lo" />
45   </struct>
46
47   <struct name="SYSTEMCOUNTER">
48     <field type="COUNTER" name="counter" />
49     <field type="INT64" name="resolution" />
50     <field type="CARD16" name="name_len" />
51     <list type="CARD8" name="name">
52       <fieldref>name_len</fieldref>
53     </list>
54   </struct>
55
56   <struct name="TRIGGER">
57     <field type="COUNTER" name="counter" />
58     <field type="VALUETYPE" name="wait_type" />
59     <field type="INT64" name="wait_value" />
60     <field type="TESTTYPE" name="test_type" />
61   </struct>
62
63   <struct name="WAITCONDITION">
64     <field type="TRIGGER" name="trigger" />
65     <field type="INT64" name="event_threshold" />
66   </struct>
67
68   <error name="Counter" number="0">
69     <field type="CARD32" name="bad_counter" />
70     <field type="CARD16" name="minor_opcode" />
71     <field type="CARD8" name="major_opcode" />
72   </error>
73
74   <error name="Alarm" number="1">
75     <field type="CARD32" name="bad_alarm" />
76     <field type="CARD16" name="minor_opcode" />
77     <field type="CARD8" name="major_opcode" />
78   </error>
79     
80   <request name="Initialize" opcode="0">
81     <reply>
82       <pad bytes="1" />
83       <field type="CARD8" name="major_version" />
84       <field type="CARD8" name="minor_version" />
85     </reply>
86   </request>
87
88   <request name="ListSystemCounters" opcode="1">
89     <reply>
90       <pad bytes="1" />
91       <field type="CARD32" name="counters_len" />
92       <pad bytes="20" />
93       <list type="SYSTEMCOUNTER" name="counters">
94         <fieldref>counters_len</fieldref>
95       </list>
96     </reply>
97   </request>
98
99   <request name="CreateCounter" opcode="2">
100     <field type="COUNTER" name="id" />
101     <field type="INT64" name="initial_value" />
102   </request>
103
104   <request name="DestroyCounter" opcode="6">
105     <field type="COUNTER" name="counter" />
106   </request>
107
108   <request name="QueryCounter" opcode="5">
109     <field type="COUNTER" name="counter" />
110     <reply>
111       <pad bytes="1" />
112       <field type="INT64" name="counter_value" />
113     </reply>
114   </request>
115
116   <request name="Await" opcode="7">
117     <list type="WAITCONDITION" name="wait_list" />
118   </request>
119
120   <request name="ChangeCounter" opcode="4">
121     <field type="COUNTER" name="counter" />
122     <field type="INT64" name="amount" />
123   </request>
124
125   <request name="SetCounter" opcode="3">
126     <field type="COUNTER" name="counter" />
127     <field type="INT64" name="value" />
128   </request>
129
130   <request name="CreateAlarm" opcode="8">
131     <field type="ALARM" name="id" />
132     <valueparam value-mask-type="CARD32"
133                 value-mask-name="value_mask"
134                 value-list-name="value_list" />
135   </request>
136
137   <request name="ChangeAlarm" opcode="9">
138     <field type="ALARM" name="id" />
139     <valueparam value-mask-type="CARD32"
140                 value-mask-name="value_mask"
141                 value-list-name="value_list" />
142   </request>
143
144   <request name="DestroyAlarm" opcode="11">
145     <field type="ALARM" name="alarm" />
146   </request>
147
148   <request name="QueryAlarm" opcode="10">
149     <field type="ALARM" name="alarm" />
150     <reply>
151       <pad bytes="1" />
152       <field type="TRIGGER" name="trigger" />
153       <field type="INT64" name="delta" />
154       <field type="BOOL" name="events" />
155       <field type="ALARMSTATE" name="state" />
156     </reply>
157   </request>
158
159   <request name="SetPriority" opcode="12">
160     <field type="CARD32" name="id" />
161     <field type="INT32" name="priority" />
162   </request>
163     
164   <request name="GetPriority" opcode="13">
165     <field type="CARD32" name="id" />
166     <reply>
167       <pad bytes="1" />
168       <field type="INT32" name="priority" />
169     </reply>
170   </request>
171
172   <event name="CounterNotify" number="0">
173     <field type="CARD8" name="kind" />
174     <field type="COUNTER" name="counter" />
175     <field type="INT64" name="wait_value" />
176     <field type="INT64" name="counter_value" />
177     <field type="TIMESTAMP" name="timestamp" />
178     <field type="CARD16" name="count" />
179     <field type="BOOL" name="destroyed" />
180   </event>
181
182   <event name="AlarmNotify" number="1">
183     <field type="CARD8" name="kind" />
184     <field type="ALARM" name="alarm" />
185     <field type="INT64" name="counter_value" />
186     <field type="INT64" name="alarm_value" />
187     <field type="TIMESTAMP" name="timestamp" />
188   </event>
189 </xcb>