2 * Copyright © 2003 Keith Packard
3 * Copyright © 2007 Eric Anholt
5 * Permission to use, copy, modify, distribute, and sell this software and its
6 * documentation for any purpose is hereby granted without fee, provided that
7 * the above copyright notice appear in all copies and that both that
8 * copyright notice and this permission notice appear in supporting
9 * documentation, and that the name of Keith Packard not be used in
10 * advertising or publicity pertaining to distribution of the software without
11 * specific, written prior permission. Keith Packard makes no
12 * representations about the suitability of this software for any purpose. It
13 * is provided "as is" without express or implied warranty.
15 * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
17 * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
18 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
19 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
20 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21 * PERFORMANCE OF THIS SOFTWARE.
24 #ifndef _DAMAGEPROTO_H_
25 #define _DAMAGEPROTO_H_
28 #include <X11/extensions/xfixesproto.h>
29 #include <X11/extensions/damagewire.h>
32 #define Drawable CARD32
36 #define Colormap CARD32
37 #define GContext CARD32
39 #define VisualID CARD32
43 #define Picture CARD32
47 /************** Version 0 ******************/
56 * requests and replies
63 CARD32 majorVersion B32;
64 CARD32 minorVersion B32;
65 } xDamageQueryVersionReq;
67 #define sz_xDamageQueryVersionReq 12
70 BYTE type; /* X_Reply */
72 CARD16 sequenceNumber B16;
74 CARD32 majorVersion B32;
75 CARD32 minorVersion B32;
80 } xDamageQueryVersionReply;
82 #define sz_xDamageQueryVersionReply 32
89 Drawable drawable B32;
95 #define sz_xDamageCreateReq 16
104 #define sz_xDamageDestroyReq 8
113 } xDamageSubtractReq;
115 #define sz_xDamageSubtractReq 16
121 Drawable drawable B32;
125 #define sz_xDamageAddReq 12
129 #define DamageNotifyMore 0x80
134 CARD16 sequenceNumber B16;
135 Drawable drawable B32;
140 } xDamageNotifyEvent;
158 #endif /* _DAMAGEPROTO_H_ */