Remove now unnecessary files as everything is implemented in xcbgen.
[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="1">
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   <xidtype name="FENCE" />
22
23   <enum name="TESTTYPE">
24     <item name="PositiveTransition" />
25     <item name="NegativeTransition" />
26     <item name="PositiveComparison" />
27     <item name="NegativeComparison" />
28   </enum>
29
30   <enum name="VALUETYPE">
31     <item name="Absolute" />
32     <item name="Relative" />
33   </enum>
34
35   <enum name="CA">
36     <item name="Counter">  <bit>0</bit></item>
37     <item name="ValueType"><bit>1</bit></item>
38     <item name="Value">    <bit>2</bit></item>
39     <item name="TestType"> <bit>3</bit></item>
40     <item name="Delta">    <bit>4</bit></item>
41     <item name="Events">   <bit>5</bit></item>
42   </enum>
43
44   <struct name="INT64">
45     <field type="INT32" name="hi" />
46     <field type="CARD32" name="lo" />
47   </struct>
48
49   <struct name="SYSTEMCOUNTER">
50     <field type="COUNTER" name="counter" />
51     <field type="INT64" name="resolution" />
52     <field type="CARD16" name="name_len" />
53     <list type="char" name="name">
54       <fieldref>name_len</fieldref>
55     </list>
56   </struct>
57
58   <struct name="TRIGGER">
59     <field type="COUNTER" name="counter" />
60     <field type="CARD32" name="wait_type" enum="VALUETYPE" />
61     <field type="INT64" name="wait_value" />
62     <field type="CARD32" name="test_type" enum="TESTTYPE" />
63   </struct>
64
65   <struct name="WAITCONDITION">
66     <field type="TRIGGER" name="trigger" />
67     <field type="INT64" name="event_threshold" />
68   </struct>
69
70   <error name="Counter" number="0">
71     <field type="CARD32" name="bad_counter" />
72     <field type="CARD16" name="minor_opcode" />
73     <field type="CARD8" name="major_opcode" />
74   </error>
75
76   <error name="Alarm" number="1">
77     <field type="CARD32" name="bad_alarm" />
78     <field type="CARD16" name="minor_opcode" />
79     <field type="CARD8" name="major_opcode" />
80   </error>
81     
82   <request name="Initialize" opcode="0">
83     <field type="CARD8" name="desired_major_version" />
84     <field type="CARD8" name="desired_minor_version" />
85     <reply>
86       <pad bytes="1" />
87       <field type="CARD8" name="major_version" />
88       <field type="CARD8" name="minor_version" />
89       <pad bytes="22" />
90     </reply>
91   </request>
92
93   <request name="ListSystemCounters" opcode="1">
94     <reply>
95       <pad bytes="1" />
96       <field type="CARD32" name="counters_len" />
97       <pad bytes="20" />
98       <list type="SYSTEMCOUNTER" name="counters">
99         <fieldref>counters_len</fieldref>
100       </list>
101     </reply>
102   </request>
103
104   <request name="CreateCounter" opcode="2">
105     <field type="COUNTER" name="id" />
106     <field type="INT64" name="initial_value" />
107   </request>
108
109   <request name="DestroyCounter" opcode="6">
110     <field type="COUNTER" name="counter" />
111   </request>
112
113   <request name="QueryCounter" opcode="5">
114     <field type="COUNTER" name="counter" />
115     <reply>
116       <pad bytes="1" />
117       <field type="INT64" name="counter_value" />
118     </reply>
119   </request>
120
121   <request name="Await" opcode="7">
122     <list type="WAITCONDITION" name="wait_list" />
123   </request>
124
125   <request name="ChangeCounter" opcode="4">
126     <field type="COUNTER" name="counter" />
127     <field type="INT64" name="amount" />
128   </request>
129
130   <request name="SetCounter" opcode="3">
131     <field type="COUNTER" name="counter" />
132     <field type="INT64" name="value" />
133   </request>
134
135   <request name="CreateAlarm" opcode="8">
136     <field type="ALARM" name="id" />
137     <valueparam value-mask-type="CARD32"
138                 value-mask-name="value_mask"
139                 value-list-name="value_list" />
140   </request>
141
142   <request name="ChangeAlarm" opcode="9">
143     <field type="ALARM" name="id" />
144     <valueparam value-mask-type="CARD32"
145                 value-mask-name="value_mask"
146                 value-list-name="value_list" />
147   </request>
148
149   <request name="DestroyAlarm" opcode="11">
150     <field type="ALARM" name="alarm" />
151   </request>
152
153   <request name="QueryAlarm" opcode="10">
154     <field type="ALARM" name="alarm" />
155     <reply>
156       <pad bytes="1" />
157       <field type="TRIGGER" name="trigger" />
158       <field type="INT64" name="delta" />
159       <field type="BOOL" name="events" />
160       <field type="CARD8" name="state" enum="ALARMSTATE" />
161       <pad bytes="2" />
162     </reply>
163   </request>
164
165   <request name="SetPriority" opcode="12">
166     <field type="CARD32" name="id" />
167     <field type="INT32" name="priority" />
168   </request>
169     
170   <request name="GetPriority" opcode="13">
171     <field type="CARD32" name="id" />
172     <reply>
173       <pad bytes="1" />
174       <field type="INT32" name="priority" />
175     </reply>
176   </request>
177
178   <request name="CreateFence" opcode="14">
179     <field type="DRAWABLE" name="drawable" />
180     <field type="FENCE" name="fence" />
181     <field type="BOOL" name="initially_triggered" />
182   </request>
183
184   <request name="TriggerFence" opcode="15">
185     <field type="FENCE" name="fence" />
186   </request>
187
188   <request name="ResetFence" opcode="16">
189     <field type="FENCE" name="fence" />
190   </request>
191
192   <request name="DestroyFence" opcode="17">
193     <field type="FENCE" name="fence" />
194   </request>
195
196   <request name="QueryFence" opcode="18">
197     <field type="FENCE" name="fence" />
198     <reply>
199       <pad bytes="1" />
200       <field type="BOOL" name="triggered" />
201       <pad bytes="23" />
202     </reply>
203   </request>
204
205   <request name="AwaitFence" opcode="19">
206     <list type="FENCE" name="fence_list" />
207   </request>
208
209   <event name="CounterNotify" number="0">
210     <field type="CARD8" name="kind" />
211     <field type="COUNTER" name="counter" />
212     <field type="INT64" name="wait_value" />
213     <field type="INT64" name="counter_value" />
214     <field type="TIMESTAMP" name="timestamp" />
215     <field type="CARD16" name="count" />
216     <field type="BOOL" name="destroyed" />
217     <pad bytes="1" />
218   </event>
219
220   <event name="AlarmNotify" number="1">
221     <field type="CARD8" name="kind" />
222     <field type="ALARM" name="alarm" />
223     <field type="INT64" name="counter_value" />
224     <field type="INT64" name="alarm_value" />
225     <field type="TIMESTAMP" name="timestamp" />
226     <field type="CARD8" name="state" enum="ALARMSTATE" />
227     <pad bytes="3" />
228   </event>
229 </xcb>