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="0">
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 <enum name="TESTTYPE">
22 <item name="PositiveTransition" />
23 <item name="NegativeTransition" />
24 <item name="PositiveComparison" />
25 <item name="NegativeComparison" />
28 <enum name="VALUETYPE">
29 <item name="Absolute" />
30 <item name="Relative" />
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>
43 <field type="INT32" name="hi" />
44 <field type="CARD32" name="lo" />
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>
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" />
63 <struct name="WAITCONDITION">
64 <field type="TRIGGER" name="trigger" />
65 <field type="INT64" name="event_threshold" />
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" />
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" />
80 <request name="Initialize" opcode="0">
83 <field type="CARD8" name="major_version" />
84 <field type="CARD8" name="minor_version" />
88 <request name="ListSystemCounters" opcode="1">
91 <field type="CARD32" name="counters_len" />
93 <list type="SYSTEMCOUNTER" name="counters">
94 <fieldref>counters_len</fieldref>
99 <request name="CreateCounter" opcode="2">
100 <field type="COUNTER" name="id" />
101 <field type="INT64" name="initial_value" />
104 <request name="DestroyCounter" opcode="6">
105 <field type="COUNTER" name="counter" />
108 <request name="QueryCounter" opcode="5">
109 <field type="COUNTER" name="counter" />
112 <field type="INT64" name="counter_value" />
116 <request name="Await" opcode="7">
117 <list type="WAITCONDITION" name="wait_list" />
120 <request name="ChangeCounter" opcode="4">
121 <field type="COUNTER" name="counter" />
122 <field type="INT64" name="amount" />
125 <request name="SetCounter" opcode="3">
126 <field type="COUNTER" name="counter" />
127 <field type="INT64" name="value" />
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" />
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" />
144 <request name="DestroyAlarm" opcode="11">
145 <field type="ALARM" name="alarm" />
148 <request name="QueryAlarm" opcode="10">
149 <field type="ALARM" name="alarm" />
152 <field type="TRIGGER" name="trigger" />
153 <field type="INT64" name="delta" />
154 <field type="BOOL" name="events" />
155 <field type="ALARMSTATE" name="state" />
159 <request name="SetPriority" opcode="12">
160 <field type="CARD32" name="id" />
161 <field type="INT32" name="priority" />
164 <request name="GetPriority" opcode="13">
165 <field type="CARD32" name="id" />
168 <field type="INT32" name="priority" />
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" />
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" />