| 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 |
/* $XFree86$ */ |
| 27 |
|
| 28 |
#ifndef _XCMISCSTR_H_ |
| 29 |
#define _XCMISCSTR_H_ |
| 30 |
|
| 31 |
#define X_XCMiscGetVersion 0 |
| 32 |
#define X_XCMiscGetXIDRange 1 |
| 33 |
#define X_XCMiscGetXIDList 2 |
| 34 |
|
| 35 |
#define XCMiscNumberEvents 0 |
| 36 |
|
| 37 |
#define XCMiscNumberErrors 0 |
| 38 |
|
| 39 |
#define XCMiscMajorVersion 1 |
| 40 |
#define XCMiscMinorVersion 1 |
| 41 |
|
| 42 |
#define XCMiscExtensionName "XC-MISC" |
| 43 |
|
| 44 |
typedef struct { |
| 45 |
CARD8 reqType; /* always XCMiscCode */ |
| 46 |
CARD8 miscReqType; /* always X_XCMiscGetVersion */ |
| 47 |
CARD16 length B16; |
| 48 |
CARD16 majorVersion B16; |
| 49 |
CARD16 minorVersion B16; |
| 50 |
} xXCMiscGetVersionReq; |
| 51 |
#define sz_xXCMiscGetVersionReq 8 |
| 52 |
|
| 53 |
typedef struct { |
| 54 |
BYTE type; /* X_Reply */ |
| 55 |
CARD8 pad0; |
| 56 |
CARD16 sequenceNumber B16; |
| 57 |
CARD32 length B32; |
| 58 |
CARD16 majorVersion B16; |
| 59 |
CARD16 minorVersion B16; |
| 60 |
CARD32 pad1 B32; |
| 61 |
CARD32 pad2 B32; |
| 62 |
CARD32 pad3 B32; |
| 63 |
CARD32 pad4 B32; |
| 64 |
CARD32 pad5 B32; |
| 65 |
} xXCMiscGetVersionReply; |
| 66 |
#define sz_xXCMiscGetVersionReply 32 |
| 67 |
|
| 68 |
typedef struct { |
| 69 |
CARD8 reqType; /* always XCMiscCode */ |
| 70 |
CARD8 miscReqType; /* always X_XCMiscGetXIDRange */ |
| 71 |
CARD16 length B16; |
| 72 |
} xXCMiscGetXIDRangeReq; |
| 73 |
#define sz_xXCMiscGetXIDRangeReq 4 |
| 74 |
|
| 75 |
typedef struct { |
| 76 |
BYTE type; /* X_Reply */ |
| 77 |
CARD8 pad0; |
| 78 |
CARD16 sequenceNumber B16; |
| 79 |
CARD32 length B32; |
| 80 |
CARD32 start_id B32; |
| 81 |
CARD32 count B32; |
| 82 |
CARD32 pad1 B32; |
| 83 |
CARD32 pad2 B32; |
| 84 |
CARD32 pad3 B32; |
| 85 |
CARD32 pad4 B32; |
| 86 |
} xXCMiscGetXIDRangeReply; |
| 87 |
#define sz_xXCMiscGetXIDRangeReply 32 |
| 88 |
|
| 89 |
typedef struct { |
| 90 |
CARD8 reqType; /* always XCMiscCode */ |
| 91 |
CARD8 miscReqType; /* always X_XCMiscGetXIDList */ |
| 92 |
CARD16 length B16; |
| 93 |
CARD32 count B32; /* number of IDs requested */ |
| 94 |
} xXCMiscGetXIDListReq; |
| 95 |
#define sz_xXCMiscGetXIDListReq 8 |
| 96 |
|
| 97 |
typedef struct { |
| 98 |
BYTE type; /* X_Reply */ |
| 99 |
CARD8 pad0; |
| 100 |
CARD16 sequenceNumber B16; |
| 101 |
CARD32 length B32; |
| 102 |
CARD32 count B32; /* number of IDs requested */ |
| 103 |
CARD32 pad1 B32; |
| 104 |
CARD32 pad2 B32; |
| 105 |
CARD32 pad3 B32; |
| 106 |
CARD32 pad4 B32; |
| 107 |
CARD32 pad5 B32; |
| 108 |
} xXCMiscGetXIDListReply; |
| 109 |
#define sz_xXCMiscGetXIDListReply 32 |
| 110 |
|
| 111 |
#endif /* _XCMISCSTR_H_ */ |