|
|
1.1 ! root 1: /*********************************************************** ! 2: Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts, ! 3: and the Massachusetts Institute of Technology, Cambridge, Massachusetts. ! 4: ! 5: All Rights Reserved ! 6: ! 7: Permission to use, copy, modify, and distribute this software and its ! 8: documentation for any purpose and without fee is hereby granted, ! 9: provided that the above copyright notice appear in all copies and that ! 10: both that copyright notice and this permission notice appear in ! 11: supporting documentation, and that the names of Digital or MIT not be ! 12: used in advertising or publicity pertaining to distribution of the ! 13: software without specific, written prior permission. ! 14: ! 15: DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ! 16: ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL ! 17: DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ! 18: ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, ! 19: WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ! 20: ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS ! 21: SOFTWARE. ! 22: ! 23: ******************************************************************/ ! 24: /* $Header: dix.h,v 1.49 87/08/14 22:48:17 newman Exp $ */ ! 25: ! 26: #ifndef DIX_H ! 27: #define DIX_H ! 28: ! 29: #include "gc.h" ! 30: #include "window.h" ! 31: ! 32: #define EARLIER -1 ! 33: #define SAMETIME 0 ! 34: #define LATER 1 ! 35: ! 36: #define NullClient ((ClientPtr) 0) ! 37: #define REQUEST(type) \ ! 38: register type *stuff = (type *)client->requestBuffer ! 39: ! 40: ! 41: #define REQUEST_SIZE_MATCH(req)\ ! 42: if ((sizeof(req) >> 2) != stuff->length)\ ! 43: return(BadLength) ! 44: ! 45: #define REQUEST_AT_LEAST_SIZE(req) \ ! 46: if ((sizeof(req) >> 2) > stuff->length )\ ! 47: return(BadLength) ! 48: ! 49: #define WriteReplyToClient(pClient, size, pReply) \ ! 50: if (pClient->swapped) \ ! 51: (*ReplySwapVector[((xReq *)pClient->requestBuffer)->reqType]) \ ! 52: (pClient, size, pReply); \ ! 53: else WriteToClient(pClient, size, (char *) pReply); ! 54: ! 55: #define WriteSwappedDataToClient(pClient, size, pbuf) \ ! 56: if (pClient->swapped) \ ! 57: (*pClient->pSwapReplyFunc)(pClient, size, pbuf); \ ! 58: else WriteToClient (pClient, size, (char *) pbuf); ! 59: ! 60: typedef struct _TimeStamp *TimeStampPtr; ! 61: typedef struct _Client *ClientPtr; ! 62: extern ClientPtr requestingClient; ! 63: extern ClientPtr *clients; ! 64: extern ClientPtr serverClient; ! 65: extern int currentMaxClients; ! 66: ! 67: extern int ProcAllowEvents(); ! 68: extern int ProcBell(); ! 69: extern int ProcChangeActivePointerGrab(); ! 70: extern int ProcChangeKeyboardControl(); ! 71: extern int ProcChangePointerControl(); ! 72: extern int ProcGetKeyboardMapping(); ! 73: extern int ProcGetPointerMapping(); ! 74: extern int ProcGetInputFocus(); ! 75: extern int ProcGetKeyboardControl(); ! 76: extern int ProcGetMotionEvents(); ! 77: extern int ProcGetPointerControl(); ! 78: extern int ProcGrabButton(); ! 79: extern int ProcGrabKey(); ! 80: extern int ProcGrabKeyboard(); ! 81: extern int ProcGrabPointer(); ! 82: extern int ProcQueryKeymap(); ! 83: extern int ProcQueryPointer(); ! 84: extern int ProcSetInputFocus(); ! 85: extern int ProcSetKeyboardMapping(); ! 86: extern int ProcSetPointerMapping(); ! 87: extern int ProcSendEvent(); ! 88: extern int ProcUngrabButton(); ! 89: extern int ProcUngrabKey(); ! 90: extern int ProcUngrabKeyboard(); ! 91: extern int ProcUngrabPointer(); ! 92: extern int ProcWarpPointer(); ! 93: extern int ProcRecolorCursor(); ! 94: ! 95: extern WindowPtr LookupWindow(); ! 96: extern pointer LookupDrawable(); ! 97: ! 98: extern void NoopDDA(); ! 99: ! 100: #endif /* DIX_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.