Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:26:28

0001 /*
0002  * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
0003  *
0004  * Permission is hereby granted, free of charge, to any person obtaining a
0005  * copy of this software and associated documentation files (the "Software"),
0006  * to deal in the Software without restriction, including without limitation
0007  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
0008  * and/or sell copies of the Software, and to permit persons to whom the
0009  * Software is furnished to do so, subject to the following conditions:
0010  *
0011  * The above copyright notice and this permission notice (including the next
0012  * paragraph) shall be included in all copies or substantial portions of the
0013  * Software.
0014  *
0015  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0016  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0017  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
0018  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0019  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0020  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
0021  * DEALINGS IN THE SOFTWARE.
0022  */
0023 /*
0024  * Copyright © 2003 Keith Packard
0025  *
0026  * Permission to use, copy, modify, distribute, and sell this software and its
0027  * documentation for any purpose is hereby granted without fee, provided that
0028  * the above copyright notice appear in all copies and that both that
0029  * copyright notice and this permission notice appear in supporting
0030  * documentation, and that the name of Keith Packard not be used in
0031  * advertising or publicity pertaining to distribution of the software without
0032  * specific, written prior permission.  Keith Packard makes no
0033  * representations about the suitability of this software for any purpose.  It
0034  * is provided "as is" without express or implied warranty.
0035  *
0036  * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
0037  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
0038  * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
0039  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
0040  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
0041  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
0042  * PERFORMANCE OF THIS SOFTWARE.
0043  */
0044 
0045 #ifndef _COMPOSITEPROTO_H_
0046 #define _COMPOSITEPROTO_H_
0047 
0048 #include <X11/Xmd.h>
0049 #include <X11/extensions/composite.h>
0050 
0051 #define Window CARD32
0052 #define Region CARD32
0053 #define Pixmap CARD32
0054 
0055 /* 
0056  * requests and replies
0057  */
0058 typedef struct {
0059     CARD8   reqType;
0060     CARD8   compositeReqType;
0061     CARD16  length B16;
0062     CARD32  majorVersion B32;
0063     CARD32  minorVersion B32;
0064 } xCompositeQueryVersionReq;
0065 
0066 #define sz_xCompositeQueryVersionReq   12
0067 
0068 typedef struct {
0069     BYTE    type;   /* X_Reply */
0070     BYTE    pad1;
0071     CARD16  sequenceNumber B16;
0072     CARD32  length B32;
0073     CARD32  majorVersion B32;
0074     CARD32  minorVersion B32;
0075     CARD32  pad2 B32;
0076     CARD32  pad3 B32;
0077     CARD32  pad4 B32;
0078     CARD32  pad5 B32;
0079 } xCompositeQueryVersionReply;
0080 
0081 #define sz_xCompositeQueryVersionReply  32
0082 
0083 typedef struct {
0084     CARD8   reqType;
0085     CARD8   compositeReqType;
0086     CARD16  length B16;
0087     Window  window B32;
0088     CARD8   update;
0089     CARD8   pad1;
0090     CARD16  pad2 B16;
0091 } xCompositeRedirectWindowReq;
0092 
0093 #define sz_xCompositeRedirectWindowReq  12
0094 
0095 typedef struct {
0096     CARD8   reqType;
0097     CARD8   compositeReqType;
0098     CARD16  length B16;
0099     Window  window B32;
0100     CARD8   update;
0101     CARD8   pad1;
0102     CARD16  pad2 B16;
0103 } xCompositeRedirectSubwindowsReq;
0104 
0105 #define sz_xCompositeRedirectSubwindowsReq      12
0106 
0107 typedef struct {
0108     CARD8   reqType;
0109     CARD8   compositeReqType;
0110     CARD16  length B16;
0111     Window  window B32;
0112     CARD8   update;
0113     CARD8   pad1;
0114     CARD16  pad2 B16;
0115 } xCompositeUnredirectWindowReq;
0116 
0117 #define sz_xCompositeUnredirectWindowReq    12
0118 
0119 typedef struct {
0120     CARD8   reqType;
0121     CARD8   compositeReqType;
0122     CARD16  length B16;
0123     Window  window B32;
0124     CARD8   update;
0125     CARD8   pad1;
0126     CARD16  pad2 B16;
0127 } xCompositeUnredirectSubwindowsReq;
0128 
0129 #define sz_xCompositeUnredirectSubwindowsReq   12
0130 
0131 typedef struct {
0132     CARD8   reqType;
0133     CARD8   compositeReqType;
0134     CARD16  length B16;
0135     Region  region B32;
0136     Window  window B32;
0137 } xCompositeCreateRegionFromBorderClipReq;
0138 
0139 #define sz_xCompositeCreateRegionFromBorderClipReq  12
0140 
0141 /* Version 0.2 additions */
0142 
0143 typedef struct {
0144     CARD8   reqType;
0145     CARD8   compositeReqType;
0146     CARD16  length;
0147     Window  window B32;
0148     Pixmap  pixmap B32;
0149 } xCompositeNameWindowPixmapReq;
0150 
0151 #define sz_xCompositeNameWindowPixmapReq        12
0152 
0153 /* Version 0.3 additions */
0154 
0155 typedef struct {
0156     CARD8   reqType;
0157     CARD8   compositeReqType;
0158     CARD16  length B16;
0159     Window  window B32;
0160 } xCompositeGetOverlayWindowReq;
0161 
0162 #define sz_xCompositeGetOverlayWindowReq sizeof(xCompositeGetOverlayWindowReq)
0163 
0164 typedef struct {
0165     BYTE    type;   /* X_Reply */
0166     BYTE    pad1;
0167     CARD16  sequenceNumber B16;
0168     CARD32  length B32;
0169     Window  overlayWin B32;
0170     CARD32  pad2 B32;
0171     CARD32  pad3 B32;
0172     CARD32  pad4 B32;
0173     CARD32  pad5 B32;
0174     CARD32  pad6 B32;
0175 } xCompositeGetOverlayWindowReply;
0176 
0177 #define sz_xCompositeGetOverlayWindowReply sizeof(xCompositeGetOverlayWindowReply)
0178 
0179 typedef struct {
0180     CARD8   reqType;
0181     CARD8   compositeReqType;
0182     CARD16  length B16;
0183     Window  window B32;
0184 } xCompositeReleaseOverlayWindowReq;
0185 
0186 #define sz_xCompositeReleaseOverlayWindowReq sizeof(xCompositeReleaseOverlayWindowReq)
0187 
0188 #undef Window
0189 #undef Region
0190 #undef Pixmap
0191 
0192 #endif /* _COMPOSITEPROTO_H_ */