1 <?xml version="1.0" encoding="utf-8"?>
3 Copyright (C) 2004 Mikko Torni and Josh Triplett.
4 All Rights Reserved. See the file COPYING in this directory
5 for licensing information.
7 <xcb header="sync" extension-xname="SYNC" extension-name="Sync"
8 major-version="3" minor-version="1">
9 <import>xproto</import>
11 <xidtype name="ALARM" />
13 <enum name="ALARMSTATE">
14 <item name="Active" />
15 <item name="Inactive" />
16 <item name="Destroyed" />
19 <xidtype name="COUNTER" />
21 <xidtype name="FENCE" />
23 <enum name="TESTTYPE">
24 <item name="PositiveTransition" />
25 <item name="NegativeTransition" />
26 <item name="PositiveComparison" />
27 <item name="NegativeComparison" />
30 <enum name="VALUETYPE">
31 <item name="Absolute" />
32 <item name="Relative" />
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>
45 <field type="INT32" name="hi" />
46 <field type="CARD32" name="lo" />
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>
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" />
65 <struct name="WAITCONDITION">
66 <field type="TRIGGER" name="trigger" />
67 <field type="INT64" name="event_threshold" />
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" />
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" />
82 <request name="Initialize" opcode="0">
83 <field type="CARD8" name="desired_major_version" />
84 <field type="CARD8" name="desired_minor_version" />
87 <field type="CARD8" name="major_version" />
88 <field type="CARD8" name="minor_version" />
93 <request name="ListSystemCounters" opcode="1">
96 <field type="CARD32" name="counters_len" />
98 <list type="SYSTEMCOUNTER" name="counters">
99 <fieldref>counters_len</fieldref>
104 <request name="CreateCounter" opcode="2">
105 <field type="COUNTER" name="id" />
106 <field type="INT64" name="initial_value" />
109 <request name="DestroyCounter" opcode="6">
110 <field type="COUNTER" name="counter" />
113 <request name="QueryCounter" opcode="5">
114 <field type="COUNTER" name="counter" />
117 <field type="INT64" name="counter_value" />
121 <request name="Await" opcode="7">
122 <list type="WAITCONDITION" name="wait_list" />
125 <request name="ChangeCounter" opcode="4">
126 <field type="COUNTER" name="counter" />
127 <field type="INT64" name="amount" />
130 <request name="SetCounter" opcode="3">
131 <field type="COUNTER" name="counter" />
132 <field type="INT64" name="value" />
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" />
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" />
149 <request name="DestroyAlarm" opcode="11">
150 <field type="ALARM" name="alarm" />
153 <request name="QueryAlarm" opcode="10">
154 <field type="ALARM" name="alarm" />
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" />
165 <request name="SetPriority" opcode="12">
166 <field type="CARD32" name="id" />
167 <field type="INT32" name="priority" />
170 <request name="GetPriority" opcode="13">
171 <field type="CARD32" name="id" />
174 <field type="INT32" name="priority" />
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" />
184 <request name="TriggerFence" opcode="15">
185 <field type="FENCE" name="fence" />
188 <request name="ResetFence" opcode="16">
189 <field type="FENCE" name="fence" />
192 <request name="DestroyFence" opcode="17">
193 <field type="FENCE" name="fence" />
196 <request name="QueryFence" opcode="18">
197 <field type="FENCE" name="fence" />
200 <field type="BOOL" name="triggered" />
205 <request name="AwaitFence" opcode="19">
206 <list type="FENCE" name="fence_list" />
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" />
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" />