Home | History | Annotate | Download | only in extensions
      1 /* $Xorg: xteststr.h,v 1.4 2001/02/09 02:03:24 xorgcvs Exp $ */
      2 /*
      3 
      4 Copyright 1992, 1998  The Open Group
      5 
      6 Permission to use, copy, modify, distribute, and sell this software and its
      7 documentation for any purpose is hereby granted without fee, provided that
      8 the above copyright notice appear in all copies and that both that
      9 copyright notice and this permission notice appear in supporting
     10 documentation.
     11 
     12 The above copyright notice and this permission notice shall be included in
     13 all copies or substantial portions of the Software.
     14 
     15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
     18 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
     19 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
     20 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
     21 
     22 Except as contained in this notice, the name of The Open Group shall not be
     23 used in advertising or otherwise to promote the sale, use or other dealings
     24 in this Software without prior written authorization from The Open Group.
     25 
     26 */
     27 
     28 #ifndef _XTESTSTR_H_
     29 #define _XTESTSTR_H_
     30 
     31 #define Window CARD32
     32 #define Time CARD32
     33 #define Cursor CARD32
     34 
     35 #define XTestCurrentCursor ((Cursor)1)
     36 
     37 typedef struct {
     38     CARD8	reqType;	/* always XTestReqCode */
     39     CARD8	xtReqType;	/* always X_XTestGetVersion */
     40     CARD16	length B16;
     41     CARD8	majorVersion;
     42     CARD8	pad;
     43     CARD16	minorVersion B16;
     44 } xXTestGetVersionReq;
     45 #define sz_xXTestGetVersionReq 8
     46 
     47 typedef struct {
     48     BYTE	type;			/* X_Reply */
     49     CARD8	majorVersion;
     50     CARD16	sequenceNumber B16;
     51     CARD32	length B32;
     52     CARD16	minorVersion B16;
     53     CARD16	pad0 B16;
     54     CARD32	pad1 B32;
     55     CARD32	pad2 B32;
     56     CARD32	pad3 B32;
     57     CARD32	pad4 B32;
     58     CARD32	pad5 B32;
     59 } xXTestGetVersionReply;
     60 #define sz_xXTestGetVersionReply 32
     61 
     62 typedef struct {
     63     CARD8	reqType;	/* always XTestReqCode */
     64     CARD8	xtReqType;	/* always X_XTestCompareCursor */
     65     CARD16	length B16;
     66     Window	window B32;
     67     Cursor	cursor B32;
     68 } xXTestCompareCursorReq;
     69 #define sz_xXTestCompareCursorReq 12
     70 
     71 typedef struct {
     72     BYTE	type;			/* X_Reply */
     73     BOOL	same;
     74     CARD16	sequenceNumber B16;
     75     CARD32	length B32;
     76     CARD32	pad0 B32;
     77     CARD32	pad1 B32;
     78     CARD32	pad2 B32;
     79     CARD32	pad3 B32;
     80     CARD32	pad4 B32;
     81     CARD32	pad5 B32;
     82 } xXTestCompareCursorReply;
     83 #define sz_xXTestCompareCursorReply 32
     84 
     85 /* used only on the client side */
     86 typedef struct {
     87     CARD8	reqType;	/* always XTestReqCode */
     88     CARD8	xtReqType;	/* always X_XTestFakeInput */
     89     CARD16	length B16;
     90     BYTE	type;
     91     BYTE	detail;
     92     CARD16	pad0 B16;
     93     Time	time B32;
     94     Window	root B32;
     95     CARD32	pad1 B32;
     96     CARD32	pad2 B32;
     97     INT16	rootX B16, rootY B16;
     98     CARD32	pad3 B32;
     99     CARD16	pad4 B16;
    100     CARD8	pad5;
    101     CARD8	deviceid;
    102 } xXTestFakeInputReq;
    103 #define sz_xXTestFakeInputReq 36
    104 
    105 typedef struct {
    106     CARD8	reqType;	/* always XTestReqCode */
    107     CARD8	xtReqType;	/* always X_XTestGrabControl */
    108     CARD16	length B16;
    109     BOOL	impervious;
    110     CARD8	pad0;
    111     CARD8	pad1;
    112     CARD8	pad2;
    113 } xXTestGrabControlReq;
    114 #define sz_xXTestGrabControlReq 8
    115 
    116 #undef Window
    117 #undef Time
    118 #undef Cursor
    119 
    120 #endif /* _XTESTSTR_H_ */
    121