|
|
1.1 ! root 1: ! 2: /*********************************************************** ! 3: Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts, ! 4: and the Massachusetts Institute of Technology, Cambridge, Massachusetts. ! 5: ! 6: All Rights Reserved ! 7: ! 8: Permission to use, copy, modify, and distribute this software and its ! 9: documentation for any purpose and without fee is hereby granted, ! 10: provided that the above copyright notice appear in all copies and that ! 11: both that copyright notice and this permission notice appear in ! 12: supporting documentation, and that the names of Digital or MIT not be ! 13: used in advertising or publicity pertaining to distribution of the ! 14: software without specific, written prior permission. ! 15: ! 16: DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ! 17: ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL ! 18: DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ! 19: ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, ! 20: WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ! 21: ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS ! 22: SOFTWARE. ! 23: ! 24: ******************************************************************/ ! 25: /* $Header: dixstruct.h,v 1.7 87/09/11 07:49:48 toddb Exp $ */ ! 26: #ifndef DIXSTRUCT_H ! 27: #define DIXSTRUCT_H ! 28: ! 29: #include "dix.h" ! 30: #include "resource.h" ! 31: #include "cursor.h" ! 32: #include "gc.h" ! 33: #include "pixmap.h" ! 34: ! 35: /* ! 36: * direct-mapped hash table, used by resource manager to store ! 37: * translation from client ids to server addresses. ! 38: */ ! 39: ! 40: typedef struct _TimeStamp { ! 41: unsigned long months; /* really ~49.7 days */ ! 42: unsigned long milliseconds; ! 43: } TimeStamp; ! 44: ! 45: #define MAX_REQUEST_LOG 100 ! 46: ! 47: typedef struct _Client { ! 48: int index; ! 49: Mask clientAsMask; ! 50: pointer requestBuffer; ! 51: pointer osPrivate; /* for OS layer, including scheduler */ ! 52: Bool swapped; ! 53: void (* pSwapReplyFunc)(); ! 54: int errorValue; ! 55: int sequence; ! 56: int closeDownMode; ! 57: int clientGone; ! 58: int noClientException; /* this client died or needs to be killed*/ ! 59: DrawablePtr lastDrawable; ! 60: int lastDrawableID; ! 61: GCPtr lastGC; ! 62: int lastGCID; ! 63: pointer *saveSet; ! 64: int numSaved; ! 65: int requestLog[MAX_REQUEST_LOG]; ! 66: int requestLogIndex; ! 67: pointer screenPrivate[MAXSCREENS]; ! 68: } ClientRec; ! 69: ! 70: extern TimeStamp currentTime; ! 71: extern void CloseDownClient(); ! 72: ! 73: extern TimeStamp ClientTimeToServerTime(); ! 74: ! 75: #endif /* DIXSTRUCT_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.