From Ronnie Sahlberg:
[obnox/wireshark/wip.git] / x11-fields
1 #
2 # Fields for X11 dissector.
3 #
4 # Copyright 2000, Christophe Tronche <ch.tronche@computer.org>
5 #
6 # $Id: x11-fields,v 1.4 2001/04/21 08:04:43 guy Exp $
7 #
8 # Ethereal - Network traffic analyzer
9 # By Gerald Combs <gerald@ethereal.com>
10 # Copyright 1998 Gerald Combs
11 #
12 # This program is free software; you can redistribute it and/or
13 # modify it under the terms of the GNU General Public License
14 # as published by the Free Software Foundation; either version 2
15 # of the License, or (at your option) any later version.
16
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 # GNU General Public License for more details.
21
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 #
26
27 acceleration-denominator        INT16   DEC
28 acceleration-numerator  INT16   DEC
29 access-mode     UINT8   DEC     VALS
30 address         BYTES   NONE
31 address-length  UINT16  DEC
32 alloc           UINT8   DEC     VALS
33 allow-events-mode       UINT8   DEC     VALS
34 allow-exposures UINT8   DEC     VALS(yes_no_default)
35 arcs            NONE    NONE
36
37 arc             NONE    NONE
38         x               INT16   DEC
39         y               INT16   DEC
40         width   UINT16  DEC
41         height  UINT16  DEC
42         angle1  INT16   DEC
43         angle2  INT16   DEC
44         mode    UINT8   DEC     VALS    Tell us if we're drawing an arc or a pie
45
46 atom            UINT32  HEX
47 auto-repeat-mode        UINT8   DEC     VALS
48 back-blue       UINT16  DEC             Background blue value for a cursor
49 back-green      UINT16  DEC             Background green value for a cursor
50 back-red        UINT16  DEC             Background red value for a cursor
51 background      UINT32  HEX             Background color
52 background-pixel        UINT32  HEX     Background color for a window
53 background-pixmap       UINT32  HEX     VALS    Background pixmap for a window
54 backing-pixel   UINT32  HEX
55 backing-planes  UINT32  HEX
56 backing-store   UINT8   DEC     VALS
57 bell-duration   INT16   DEC
58 bell-percent    INT8    DEC
59 bell-pitch      INT16   DEC
60 bit-gravity     UINT8   DEC     VALS(gravity)
61 bit-plane       UINT32  BIN
62 blue            UINT16  DEC
63 blues           UINT16  DEC
64 border-pixel    UINT32  HEX
65 border-pixmap   UINT32  HEX     VALS
66 border-width    UINT16  DEC
67 button          UINT8   DEC     VALS
68 cap-style       UINT8   DEC     VALS
69 change-host-mode        UINT8   DEC     VALS(insert_delete)
70 cid             UINT32  HEX
71 class           UINT8   DEC     VALS
72 clip-mask       UINT32  HEX     VALS(zero_is_none)
73 clip-x-origin   INT16   DEC
74 clip-y-origin   INT16   DEC
75 close-down-mode UINT8   DEC     VALS
76 cmap            UINT32  HEX
77 colormap        UINT32  HEX
78
79 color-items     NONE    NONE
80
81 coloritem               NONE    NONE
82         pixel           UINT32  HEX
83         red             UINT16  DEC
84         green           UINT16  DEC
85         blue            UINT16  DEC
86         flags           UINT8   HEX
87                 do-red          BOOLEAN 8       0x01
88                 do-green        BOOLEAN 8       0x02
89                 do-blue         BOOLEAN 8       0x04
90                 unused          BOOLEAN 8       0xf8
91         unused          NONE    NONE
92
93 colors          UINT16  DEC                     The number of color cells to allocate
94
95 configure-window-mask   UINT16  HEX
96         x               BOOLEAN 16      0x0001
97         y               BOOLEAN 16      0x0002
98         width           BOOLEAN 16      0x0004
99         height          BOOLEAN 16      0x0008
100         border-width    BOOLEAN 16      0x0010
101         sibling         BOOLEAN 16      0x0020
102         stack-mode      BOOLEAN 16      0x0040
103
104 confine-to      UINT32  HEX     VALS(zero_is_none)
105 contiguous      BOOLEAN NONE
106 coordinate-mode UINT8   DEC     VALS
107 count           UINT8   DEC
108 cursor          UINT32  HEX     VALS(zero_is_none)
109 dash-offset     UINT16  DEC
110 dashes          BYTES   NONE
111 dashes-length   UINT16  DEC
112 do-acceleration BOOLEAN NONE
113 do-threshold    BOOLEAN NONE
114
115 do-not-propagate-mask   UINT32  HEX
116         KeyPress                BOOLEAN 32      0x00000001
117         KeyRelease              BOOLEAN 32      0x00000002
118         ButtonPress             BOOLEAN 32      0x00000004
119         ButtonRelease           BOOLEAN 32      0x00000008
120         PointerMotion           BOOLEAN 32      0x00000040
121         Button1Motion           BOOLEAN 32      0x00000100
122         Button2Motion           BOOLEAN 32      0x00000200
123         Button3Motion           BOOLEAN 32      0x00000400
124         Button4Motion           BOOLEAN 32      0x00000800
125         Button5Motion           BOOLEAN 32      0x00001000
126         ButtonMotion            BOOLEAN 32      0x00002000
127         erroneous-bits          BOOLEAN 32      0xffffc0b0
128
129 gc-dashes       UINT8   BIN
130
131 gc-value-mask   UINT32  HEX
132         function                BOOLEAN 32      0x00000001
133         plane-mask              BOOLEAN 32      0x00000002
134         foreground              BOOLEAN 32      0x00000004
135         background              BOOLEAN 32      0x00000008
136         line-width              BOOLEAN 32      0x00000010
137         line-style              BOOLEAN 32      0x00000020
138         cap-style               BOOLEAN 32      0x00000040
139         join-style              BOOLEAN 32      0x00000080
140         fill-style              BOOLEAN 32      0x00000100
141         fill-rule               BOOLEAN 32      0x00000200
142         tile                    BOOLEAN 32      0x00000400
143         stipple                 BOOLEAN 32      0x00000800
144         tile-stipple-x-origin   BOOLEAN 32      0x00001000
145         tile-stipple-y-origin   BOOLEAN 32      0x00002000
146         font                    BOOLEAN 32      0x00004000
147         subwindow-mode          BOOLEAN 32      0x00008000
148         graphics-exposures      BOOLEAN 32      0x00010000
149         clip-x-origin           BOOLEAN 32      0x00020000
150         clip-y-origin           BOOLEAN 32      0x00040000
151         clip-mask               BOOLEAN 32      0x00080000
152         dash-offset             BOOLEAN 32      0x00100000
153         gc-dashes               BOOLEAN 32      0x00200000
154         arc-mode                BOOLEAN 32      0x00400000
155
156 green           UINT16  DEC
157 greens          UINT16  DEC
158 data            BYTES   NONE
159 data-length     UINT32  DEC
160 delete          BOOLEAN NONE            Delete this property after reading
161 delta           INT16   DEC
162 depth           UINT8   DEC
163 direction       UINT8   DEC     VALS
164 drawable        UINT32  HEX
165 dst-drawable    UINT32  HEX
166 dst-gc          UINT32  HEX
167 dst-window      UINT32  HEX
168 dst-x           INT16   DEC
169 dst-y           INT16   DEC
170
171 event-mask      UINT32  HEX
172         KeyPress                BOOLEAN 32      0x00000001
173         KeyRelease              BOOLEAN 32      0x00000002
174         ButtonPress             BOOLEAN 32      0x00000004
175         ButtonRelease           BOOLEAN 32      0x00000008
176         EnterWindow             BOOLEAN 32      0x00000010
177         LeaveWindow             BOOLEAN 32      0x00000020
178         PointerMotion           BOOLEAN 32      0x00000040
179         PointerMotionHint       BOOLEAN 32      0x00000080
180         Button1Motion           BOOLEAN 32      0x00000100
181         Button2Motion           BOOLEAN 32      0x00000200
182         Button3Motion           BOOLEAN 32      0x00000400
183         Button4Motion           BOOLEAN 32      0x00000800
184         Button5Motion           BOOLEAN 32      0x00001000
185         ButtonMotion            BOOLEAN 32      0x00002000
186         KeymapState             BOOLEAN 32      0x00004000
187         Exposure                BOOLEAN 32      0x00008000
188         VisibilityChange        BOOLEAN 32      0x00010000
189         StructureNotify         BOOLEAN 32      0x00020000
190         ResizeRedirect          BOOLEAN 32      0x00040000
191         SubstructureNotify      BOOLEAN 32      0x00080000
192         SubstructureRedirect    BOOLEAN 32      0x00100000
193         FocusChange             BOOLEAN 32      0x00200000
194         PropertyChange          BOOLEAN 32      0x00400000
195         ColormapChange          BOOLEAN 32      0x00800000
196         OwnerGrabButton         BOOLEAN 32      0x01000000
197         erroneous-bits          BOOLEAN 32      0xfe000000
198
199 exposures       BOOLEAN NONE
200 family          UINT8   DEC     VALS
201 fid             UINT32  HEX             Font id
202 fill-rule       UINT8   DEC     VALS
203 fill-style      UINT8   DEC     VALS
204 first-keycode   UINT8   DEC
205 focus           UINT8   DEC     VALS
206 font            UINT32  HEX
207 fore-blue       UINT16  DEC
208 fore-green      UINT16  DEC
209 fore-red        UINT16  DEC
210 foreground      UINT32  HEX
211 format          UINT8   DEC
212 function        UINT8   DEC     VALS
213 gc              UINT32  HEX
214 get-property-type       UINT32  HEX     VALS(zero_is_any_property_type)
215 grab_window     UINT32  HEX
216 graphics-exposures      BOOLEAN NONE
217 height          UINT16  DEC
218 image-format    UINT8   DEC     VALS
219 image-pixmap-format     UINT8   DEC     VALS
220 interval        INT16   DEC
221 items           NONE    NONE
222 join-style      UINT8   DEC     VALS
223 key             UINT8   DEC     VALS
224 key-click-percent       INT8    DEC
225 keyboard-key    UINT8   DEC
226 keyboard-mode   UINT8   DEC     VALS(pointer_keyboard_mode)
227
228 keyboard-value-mask     UINT32  HEX
229         key-click-percent       BOOLEAN 32      0x0001
230         bell-percent            BOOLEAN 32      0x0002
231         bell-pitch              BOOLEAN 32      0x0004
232         bell-duration           BOOLEAN 32      0x0008
233         led                     BOOLEAN 32      0x0010
234         led-mode                BOOLEAN 32      0x0020
235         keyboard-key            BOOLEAN 32      0x0040
236         auto-repeat-mode        BOOLEAN 32      0x0080
237
238 keycode-count   UINT8   DEC
239
240 keycodes        NONE    NONE
241         item    BYTES   NONE
242
243 keycodes-per-modifier   UINT8   DEC
244
245 keysyms         NONE    NONE
246         item    NONE    NONE
247                 keysym  UINT32  HEX
248
249 keysyms-per-keycode     UINT8   DEC
250 led             UINT8   DEC
251 led-mode        UINT8   DEC     VALS(on_off)
252 left-pad        UINT8   DEC
253 line-style      UINT8   DEC     VALS
254 line-width      UINT16  DEC
255 long-length     UINT32  DEC             The maximum length of the property in bytes
256 long-offset     UINT32  DEC             The starting position in the property bytes array
257 map             BYTES   NONE
258 map-length      UINT8   DEC
259 mask            UINT32  HEX     VALS(zero_is_none)
260 mask-char       UINT16  DEC
261 mask-font       UINT32  HEX     VALS(zero_is_none)
262 max-names       UINT16  DEC
263 mid             UINT32  HEX
264 mode            UINT8   DEC     VALS
265
266 modifiers-mask          UINT16  HEX
267         Shift                   BOOLEAN 16      0x0001
268         Lock                    BOOLEAN 16      0x0002
269         Control                 BOOLEAN 16      0x0004
270         Mod1                    BOOLEAN 16      0x0008
271         Mod2                    BOOLEAN 16      0x0010
272         Mod3                    BOOLEAN 16      0x0020
273         Mod4                    BOOLEAN 16      0x0040
274         Mod5                    BOOLEAN 16      0x0080
275         AnyModifier             UINT16  HEX     0x8000
276         erroneous-bits          BOOLEAN 16      0xff00
277
278 name            STRING  HEX
279 name-length     UINT16  DEC
280 odd-length      BOOLEAN NONE
281 only-if-exists  BOOLEAN NONE
282 opcode          UINT8   DEC     VALS
283 ordering        UINT8   DEC     VALS
284 override-redirect       BOOLEAN NONE    Window manager doesn't manage this window when true
285 owner           UINT32  HEX     VALS(zero_is_none)
286 owner-events    BOOLEAN NONE
287 parent          UINT32  HEX
288
289 path    NONE    NONE
290         string                  STRING  NONE
291
292 pattern         STRING  HEX
293 pattern-length  UINT16  DEC
294 percent         UINT8   DEC
295 pid             UINT32  HEX
296 pixel           UINT32  HEX
297 pixels          NONE    NONE
298 pixels_item     UINT32  HEX
299 pixmap          UINT32  HEX
300 plane-mask      UINT32  HEX     VALS
301 planes          UINT16  DEC
302 point           NONE    NONE
303 points          NONE    NONE
304 point-x         INT16   DEC
305 point-y         INT16   DEC
306
307 pointer-event-mask      UINT16  HEX
308         ButtonPress             BOOLEAN 16      0x0004
309         ButtonRelease           BOOLEAN 16      0x0008
310         EnterWindow             BOOLEAN 16      0x0010
311         LeaveWindow             BOOLEAN 16      0x0020
312         PointerMotion           BOOLEAN 16      0x0040
313         PointerMotionHint       BOOLEAN 16      0x0080
314         Button1Motion           BOOLEAN 16      0x0100
315         Button2Motion           BOOLEAN 16      0x0200
316         Button3Motion           BOOLEAN 16      0x0400
317         Button4Motion           BOOLEAN 16      0x0800
318         Button5Motion           BOOLEAN 16      0x1000
319         ButtonMotion            BOOLEAN 16      0x2000
320         KeymapState             BOOLEAN 16      0x4000
321         erroneous-bits          BOOLEAN 16      0x8003
322
323 pointer-mode    UINT8   DEC     VALS(pointer_keyboard_mode)
324 prefer-blanking UINT8   DEC     VALS(yes_no_default)
325
326 properties      NONE    NONE
327         item    UINT32  HEX
328
329 property        UINT32  HEX
330 property-number UINT16  DEC
331 rectangle-height        UINT16  DEC
332 rectangles      NONE    NONE
333 rectangle       NONE    NONE
334 rectangle-width UINT16  DEC
335 rectangle-x     INT16   DEC
336 rectangle-y     INT16   DEC
337 red             UINT16  DEC
338 reds            UINT16  DEC
339 request         UINT8   DEC     VALS(opcode)
340 requestor       UINT32  HEX
341 request-length  UINT16  DEC             Request length
342 resource        UINT32  HEX     VALS(all_temporary)
343 revert-to       UINT8   DEC     VALS
344 save-set-mode   UINT8   DEC     VALS(insert_delete)
345 save-under      BOOLEAN NONE
346 screen-saver-mode       UINT8   DEC     VALS
347 segment         NONE    NONE
348 segments        NONE    NONE
349 segment_x1      INT16   DEC
350 segment_x2      INT16   DEC
351 segment_y1      INT16   DEC
352 segment_y2      INT16   DEC
353 selection       UINT32  HEX
354 shape           UINT8   DEC     VALS
355 sibling         UINT32  HEX
356 source-pixmap   UINT32  HEX
357 source-font     UINT32  HEX
358 source-char     UINT16  DEC
359 src-cmap        UINT32  HEX
360 src-drawable    UINT32  HEX
361 src-gc          UINT32  HEX
362 src-height      UINT16  DEC
363 src-width       UINT16  DEC
364 src-window      UINT32  HEX
365 src-x           INT16   DEC
366 src-y           INT16   DEC
367 start           UINT32  DEC
368 stack-mode      UINT8   DEC     VALS
369 stipple         UINT32  HEX
370 stop            UINT32  DEC
371 str-number-in-path      UINT16  DEC
372 string          STRING  HEX
373
374 string16        STRING  HEX
375         bytes   BYTES   NONE
376
377 string-length   UINT32  DEC
378 subwindow-mode  UINT8   DEC     VALS
379 target          UINT32  HEX
380
381 textitem        NONE    NONE
382         font    UINT32  HEX
383         string          NONE    NONE
384                 delta           INT8    DEC
385                 string8         STRING  NONE
386                 string16        STRING  NONE
387                         bytes   BYTES   NONE
388
389 threshold       INT16   DEC
390 tile            UINT32  HEX
391 tile-stipple-x-origin   INT16   DEC
392 tile-stipple-y-origin   INT16   DEC
393 time            UINT32  DEC
394 timeout         INT16   DEC
395 type            UINT32  HEX
396 undecoded       NONE    NONE            Yet undecoded by dissector
397 unused          NONE    NONE
398 visual          UINT32  HEX
399 visualid        UINT32  HEX
400 warp-pointer-dst-window UINT32  HEX     VALS(zero_is_none)
401 warp-pointer-src-window UINT32  HEX     VALS(zero_is_none)
402 wid             UINT32  HEX             Window id
403 width           UINT16  DEC
404 win-gravity     UINT8   DEC     VALS(gravity)
405 window          UINT32  HEX
406 window-class    UINT16  DEC     VALS            Window class
407
408 window-value-mask       UINT32  HEX
409         background-pixmap       BOOLEAN 32      0x00000001
410         background-pixel        BOOLEAN 32      0x00000002
411         border-pixmap           BOOLEAN 32      0x00000004
412         border-pixel            BOOLEAN 32      0x00000008
413         bit-gravity             BOOLEAN 32      0x00000010
414         win-gravity             BOOLEAN 32      0x00000020
415         backing-store           BOOLEAN 32      0x00000040
416         backing-planes          BOOLEAN 32      0x00000080
417         backing-pixel           BOOLEAN 32      0x00000100
418         override-redirect       BOOLEAN 32      0x00000200
419         save-under              BOOLEAN 32      0x00000400
420         event-mask              BOOLEAN 32      0x00000800
421         do-not-propagate-mask   BOOLEAN 32      0x00001000
422         colormap                BOOLEAN 32      0x00002000
423         cursor                  BOOLEAN 32      0x00004000
424
425 x               INT16   DEC
426 y               INT16   DEC