117ca54c3Smrg/************************************************************
217ca54c3Smrg
317ca54c3SmrgCopyright 1989, 1998  The Open Group
417ca54c3Smrg
517ca54c3SmrgPermission to use, copy, modify, distribute, and sell this software and its
617ca54c3Smrgdocumentation for any purpose is hereby granted without fee, provided that
717ca54c3Smrgthe above copyright notice appear in all copies and that both that
817ca54c3Smrgcopyright notice and this permission notice appear in supporting
917ca54c3Smrgdocumentation.
1017ca54c3Smrg
1117ca54c3SmrgThe above copyright notice and this permission notice shall be included in
1217ca54c3Smrgall copies or substantial portions of the Software.
1317ca54c3Smrg
1417ca54c3SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1517ca54c3SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1617ca54c3SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
1717ca54c3SmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
1817ca54c3SmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1917ca54c3SmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2017ca54c3Smrg
2117ca54c3SmrgExcept as contained in this notice, the name of The Open Group shall not be
2217ca54c3Smrgused in advertising or otherwise to promote the sale, use or other dealings
2317ca54c3Smrgin this Software without prior written authorization from The Open Group.
2417ca54c3Smrg
2517ca54c3Smrg********************************************************/
2617ca54c3Smrg
2717ca54c3Smrg/* RANDOM CRUFT! THIS HAS NO OFFICIAL X CONSORTIUM OR X PROJECT TEAM BLESSING */
2817ca54c3Smrg
2917ca54c3Smrg#ifndef _MITMISCPROTO_H_
3017ca54c3Smrg#define _MITMISCPROTO_H_
3117ca54c3Smrg
3217ca54c3Smrg#include <X11/extensions/mitmiscconst.h>
3317ca54c3Smrg
3417ca54c3Smrg#define X_MITSetBugMode			0
3517ca54c3Smrg#define X_MITGetBugMode			1
3617ca54c3Smrg
3717ca54c3Smrgtypedef struct _SetBugMode {
3817ca54c3Smrg    CARD8	reqType;	/* always MITReqCode */
3917ca54c3Smrg    CARD8	mitReqType;	/* always X_MITSetBugMode */
40ea1d6981Smrg    CARD16	length;
4117ca54c3Smrg    BOOL	onOff;
4217ca54c3Smrg    BYTE	pad0;
4317ca54c3Smrg    CARD16	pad1;
4417ca54c3Smrg} xMITSetBugModeReq;
4517ca54c3Smrg#define sz_xMITSetBugModeReq	8
4617ca54c3Smrg
4717ca54c3Smrgtypedef struct _GetBugMode {
4817ca54c3Smrg    CARD8	reqType;	/* always MITReqCode */
4917ca54c3Smrg    CARD8	mitReqType;	/* always X_MITGetBugMode */
50ea1d6981Smrg    CARD16	length;
5117ca54c3Smrg} xMITGetBugModeReq;
5217ca54c3Smrg#define sz_xMITGetBugModeReq	4
5317ca54c3Smrg
5417ca54c3Smrgtypedef struct {
5517ca54c3Smrg    BYTE	type;			/* X_Reply */
5617ca54c3Smrg    BOOL	onOff;
57ea1d6981Smrg    CARD16	sequenceNumber;
58ea1d6981Smrg    CARD32	length;
59ea1d6981Smrg    CARD32	pad0;
60ea1d6981Smrg    CARD32	pad1;
61ea1d6981Smrg    CARD32	pad2;
62ea1d6981Smrg    CARD32	pad3;
63ea1d6981Smrg    CARD32	pad4;
64ea1d6981Smrg    CARD32	pad5;
6517ca54c3Smrg} xMITGetBugModeReply;
6617ca54c3Smrg#define sz_xMITGetBugModeReply	32
6717ca54c3Smrg
6817ca54c3Smrg#endif /* _MITMISCPROTO_H_ */
69