Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:17

0001 /*
0002  * Copyright © 2007-2008 Peter Hutterer
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  * Authors: Peter Hutterer, University of South Australia, NICTA
0024  *
0025  */
0026 
0027 #ifndef _GEPROTO_H_
0028 #define _GEPROTO_H_
0029 
0030 #include<X11/Xproto.h>
0031 #include<X11/X.h>
0032 #include<X11/extensions/ge.h>
0033 
0034 
0035 /*********************************************************
0036  *
0037  * Protocol request constants
0038  *
0039  */
0040 
0041 #define X_GEGetExtensionVersion 1
0042 
0043 /*********************************************************
0044  *
0045  * XGE protocol requests/replies
0046  *
0047  */
0048 
0049 /* generic request */
0050 typedef struct {
0051     CARD8   reqType;
0052     CARD8   ReqType;
0053     CARD16  length B16;
0054 } xGEReq;
0055 
0056 
0057 /* QueryVersion */
0058 typedef struct {
0059     CARD8   reqType;       /* input extension major code   */
0060     CARD8   ReqType;       /* always X_GEQueryVersion */
0061     CARD16  length B16;
0062     CARD16      majorVersion B16;
0063     CARD16      minorVersion B16;
0064 } xGEQueryVersionReq;
0065 
0066 #define sz_xGEQueryVersionReq    8
0067 
0068 typedef struct {
0069     CARD8   repType;    /* X_Reply          */
0070     CARD8   RepType;    /* always X_GEQueryVersion */
0071     CARD16  sequenceNumber B16;
0072     CARD32  length B32;
0073     CARD16  majorVersion B16;
0074     CARD16  minorVersion B16;
0075     CARD32  pad00 B32;
0076     CARD32  pad01 B32;
0077     CARD32  pad02 B32;
0078     CARD32  pad03 B32;
0079     CARD32  pad04 B32;
0080 } xGEQueryVersionReply;
0081 
0082 #define sz_xGEQueryVersionReply    32
0083 
0084 #endif /* _GEPROTO_H_ */
0085