Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/X11/extensions/xtestproto.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002 
0003 Copyright 1992, 1998  The Open Group
0004 
0005 Permission to use, copy, modify, distribute, and sell this software and its
0006 documentation for any purpose is hereby granted without fee, provided that
0007 the above copyright notice appear in all copies and that both that
0008 copyright notice and this permission notice appear in supporting
0009 documentation.
0010 
0011 The above copyright notice and this permission notice shall be included in
0012 all copies or substantial portions of the Software.
0013 
0014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0017 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0018 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0019 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0020 
0021 Except as contained in this notice, the name of The Open Group shall not be
0022 used in advertising or otherwise to promote the sale, use or other dealings
0023 in this Software without prior written authorization from The Open Group.
0024 
0025 */
0026 
0027 #ifndef _XTESTPROTO_H_
0028 #define _XTESTPROTO_H_
0029 
0030 #include <X11/extensions/xtestconst.h>
0031 
0032 #define Window CARD32
0033 #define Time CARD32
0034 #define Cursor CARD32
0035 
0036 #define X_XTestGetVersion   0
0037 #define X_XTestCompareCursor    1
0038 #define X_XTestFakeInput    2
0039 #define X_XTestGrabControl  3
0040 
0041 typedef struct {
0042     CARD8   reqType;    /* always XTestReqCode */
0043     CARD8   xtReqType;  /* always X_XTestGetVersion */
0044     CARD16  length B16;
0045     CARD8   majorVersion;
0046     CARD8   pad;
0047     CARD16  minorVersion B16;
0048 } xXTestGetVersionReq;
0049 #define sz_xXTestGetVersionReq 8
0050 
0051 typedef struct {
0052     BYTE    type;           /* X_Reply */
0053     CARD8   majorVersion;
0054     CARD16  sequenceNumber B16;
0055     CARD32  length B32;
0056     CARD16  minorVersion B16;
0057     CARD16  pad0 B16;
0058     CARD32  pad1 B32;
0059     CARD32  pad2 B32;
0060     CARD32  pad3 B32;
0061     CARD32  pad4 B32;
0062     CARD32  pad5 B32;
0063 } xXTestGetVersionReply;
0064 #define sz_xXTestGetVersionReply 32
0065 
0066 typedef struct {
0067     CARD8   reqType;    /* always XTestReqCode */
0068     CARD8   xtReqType;  /* always X_XTestCompareCursor */
0069     CARD16  length B16;
0070     Window  window B32;
0071     Cursor  cursor B32;
0072 } xXTestCompareCursorReq;
0073 #define sz_xXTestCompareCursorReq 12
0074 
0075 typedef struct {
0076     BYTE    type;           /* X_Reply */
0077     BOOL    same;
0078     CARD16  sequenceNumber B16;
0079     CARD32  length B32;
0080     CARD32  pad0 B32;
0081     CARD32  pad1 B32;
0082     CARD32  pad2 B32;
0083     CARD32  pad3 B32;
0084     CARD32  pad4 B32;
0085     CARD32  pad5 B32;
0086 } xXTestCompareCursorReply;
0087 #define sz_xXTestCompareCursorReply 32
0088 
0089 /* used only on the client side */
0090 typedef struct {
0091     CARD8   reqType;    /* always XTestReqCode */
0092     CARD8   xtReqType;  /* always X_XTestFakeInput */
0093     CARD16  length B16;
0094     BYTE    type;
0095     BYTE    detail;
0096     CARD16  pad0 B16;
0097     Time    time B32;
0098     Window  root B32;
0099     CARD32  pad1 B32;
0100     CARD32  pad2 B32;
0101     INT16   rootX B16, rootY B16;
0102     CARD32  pad3 B32;
0103     CARD16  pad4 B16;
0104     CARD8   pad5;
0105     CARD8   deviceid;
0106 } xXTestFakeInputReq;
0107 #define sz_xXTestFakeInputReq 36
0108 
0109 typedef struct {
0110     CARD8   reqType;    /* always XTestReqCode */
0111     CARD8   xtReqType;  /* always X_XTestGrabControl */
0112     CARD16  length B16;
0113     BOOL    impervious;
0114     CARD8   pad0;
0115     CARD8   pad1;
0116     CARD8   pad2;
0117 } xXTestGrabControlReq;
0118 #define sz_xXTestGrabControlReq 8
0119 
0120 #undef Window
0121 #undef Time
0122 #undef Cursor
0123 
0124 #endif /* _XTESTPROTO_H_ */