github.com/rajveermalviya/gamen@v0.1.2-0.20220930195403-9be15877c1aa/internal/xkbcommon/include/X11/extensions/xcmiscproto.h (about)

     1  /*
     2  
     3  Copyright 1993, 1994, 1998  The Open Group
     4  
     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.
    10  
    11  The above copyright notice and this permission notice shall be included in
    12  all copies or substantial portions of the Software.
    13  
    14  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    15  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    16  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
    17  OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
    18  AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
    19  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    20  
    21  Except as contained in this notice, the name of The Open Group shall not be
    22  used in advertising or otherwise to promote the sale, use or other dealings
    23  in this Software without prior written authorization from The Open Group.
    24  
    25  */
    26  
    27  #ifndef _XCMISCPROTO_H_
    28  #define _XCMISCPROTO_H_
    29  
    30  #define X_XCMiscGetVersion	0
    31  #define X_XCMiscGetXIDRange	1
    32  #define X_XCMiscGetXIDList	2
    33  
    34  #define XCMiscNumberEvents	0
    35  
    36  #define XCMiscNumberErrors	0
    37  
    38  #define XCMiscMajorVersion	1
    39  #define XCMiscMinorVersion	1
    40  
    41  #define XCMiscExtensionName	"XC-MISC"
    42  
    43  typedef struct {
    44      CARD8	reqType;	/* always XCMiscCode */
    45      CARD8	miscReqType;	/* always X_XCMiscGetVersion */
    46      CARD16	length;
    47      CARD16	majorVersion;
    48      CARD16	minorVersion;
    49  } xXCMiscGetVersionReq;
    50  #define sz_xXCMiscGetVersionReq 8
    51  
    52  typedef struct {
    53      BYTE	type;			/* X_Reply */
    54      CARD8	pad0;
    55      CARD16	sequenceNumber;
    56      CARD32	length;
    57      CARD16	majorVersion;
    58      CARD16	minorVersion;
    59      CARD32	pad1;
    60      CARD32	pad2;
    61      CARD32	pad3;
    62      CARD32	pad4;
    63      CARD32	pad5;
    64  } xXCMiscGetVersionReply;
    65  #define sz_xXCMiscGetVersionReply 32
    66  
    67  typedef struct {
    68      CARD8	reqType;	/* always XCMiscCode */
    69      CARD8	miscReqType;	/* always X_XCMiscGetXIDRange */
    70      CARD16	length;
    71  } xXCMiscGetXIDRangeReq;
    72  #define sz_xXCMiscGetXIDRangeReq 4
    73  
    74  typedef struct {
    75      BYTE	type;			/* X_Reply */
    76      CARD8	pad0;
    77      CARD16	sequenceNumber;
    78      CARD32	length;
    79      CARD32	start_id;
    80      CARD32	count;
    81      CARD32	pad1;
    82      CARD32	pad2;
    83      CARD32	pad3;
    84      CARD32	pad4;
    85  } xXCMiscGetXIDRangeReply;
    86  #define sz_xXCMiscGetXIDRangeReply 32
    87  
    88  typedef struct {
    89      CARD8	reqType;	/* always XCMiscCode */
    90      CARD8	miscReqType;	/* always X_XCMiscGetXIDList */
    91      CARD16	length;
    92      CARD32	count;		/* number of IDs requested */
    93  } xXCMiscGetXIDListReq;
    94  #define sz_xXCMiscGetXIDListReq 8
    95  
    96  typedef struct {
    97      BYTE	type;			/* X_Reply */
    98      CARD8	pad0;
    99      CARD16	sequenceNumber;
   100      CARD32	length;
   101      CARD32	count;		/* number of IDs requested */
   102      CARD32	pad1;
   103      CARD32	pad2;
   104      CARD32	pad3;
   105      CARD32	pad4;
   106      CARD32	pad5;
   107  } xXCMiscGetXIDListReply;
   108  #define sz_xXCMiscGetXIDListReply 32
   109  
   110  #endif /* _XCMISCPROTO_H_ */