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