1/*
2
3Copyright 1993, 1994, 1998  The Open Group
4
5Permission to use, copy, modify, distribute, and sell this software and its
6documentation for any purpose is hereby granted without fee, provided that
7the above copyright notice appear in all copies and that both that
8copyright notice and this permission notice appear in supporting
9documentation.
10
11The above copyright notice and this permission notice shall be included in
12all copies or substantial portions of the Software.
13
14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
17OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
21Except as contained in this notice, the name of The Open Group shall not be
22used in advertising or otherwise to promote the sale, use or other dealings
23in 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
43typedef 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
52typedef 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
67typedef struct {
68    CARD8	reqType;	/* always XCMiscCode */
69    CARD8	miscReqType;	/* always X_XCMiscGetXIDRange */
70    CARD16	length;
71} xXCMiscGetXIDRangeReq;
72#define sz_xXCMiscGetXIDRangeReq 4
73
74typedef 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
88typedef 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
96typedef 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_ */
111