Annotation of researchv9/X11/src/X.V11R1/server/dix/globals.c, revision 1.1

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: 
        !            25: /* $Header: globals.c,v 1.37 87/09/07 12:53:20 swick Exp $ */
        !            26: 
        !            27: #include "X.h"
        !            28: #include "Xmd.h"
        !            29: #include "misc.h"
        !            30: #include "windowstr.h"
        !            31: #include "scrnintstr.h"
        !            32: #include "input.h"
        !            33: #include "dixfont.h"
        !            34: #include "site.h"
        !            35: #include "dixstruct.h"
        !            36: #include "os.h"
        !            37: 
        !            38: #define DEFAULT_KEYBOARD_CLICK         0
        !            39: #define DEFAULT_BELL           50
        !            40: #define DEFAULT_BELL_PITCH     400
        !            41: #define DEFAULT_BELL_DURATION  100
        !            42: #define DEFAULT_AUTOREPEAT     FALSE
        !            43: #define DEFAULT_AUTOREPEATS    {\
        !            44:        0, 0, 0, 0, 0, 0, 0, 0,\
        !            45:        0, 0, 0, 0, 0, 0, 0, 0,\
        !            46:        0, 0, 0, 0, 0, 0, 0, 0,\
        !            47:        0, 0, 0, 0, 0, 0, 0, 0 }
        !            48: #define DEFAULT_LEDS           0x0        /* all off */
        !            49: 
        !            50: #define DEFAULT_PTR_NUMERATOR  1
        !            51: #define DEFAULT_PTR_DENOMINATOR        1
        !            52: #define DEFAULT_PTR_THRESHOLD  2000
        !            53: 
        !            54: ScreenInfo screenInfo;
        !            55: KeybdCtrl defaultKeyboardControl = {
        !            56:        DEFAULT_KEYBOARD_CLICK,
        !            57:        DEFAULT_BELL,
        !            58:        DEFAULT_BELL_PITCH,
        !            59:        DEFAULT_BELL_DURATION,
        !            60:        DEFAULT_AUTOREPEAT,
        !            61:        DEFAULT_AUTOREPEATS,
        !            62:        DEFAULT_LEDS};
        !            63: 
        !            64: PtrCtrl defaultPointerControl = {
        !            65:        DEFAULT_PTR_NUMERATOR,
        !            66:        DEFAULT_PTR_DENOMINATOR,
        !            67:        DEFAULT_PTR_THRESHOLD};
        !            68: 
        !            69: ClientPtr *clients;
        !            70: ClientPtr  serverClient;
        !            71: int  currentMaxClients;   /* current size of clients array */
        !            72: 
        !            73: WindowRec WindowTable[MAXSCREENS];
        !            74: 
        !            75: unsigned long globalSerialNumber = 0;
        !            76: 
        !            77: /* these next four are initialized in main.c */
        !            78: long ScreenSaverTime;
        !            79: long ScreenSaverInterval;
        !            80: int  ScreenSaverBlanking;
        !            81: int  ScreenSaverAllowExposures;
        !            82: 
        !            83: long defaultScreenSaverTime = DEFAULT_SCREEN_SAVER_TIME;
        !            84: long defaultScreenSaverInterval = DEFAULT_SCREEN_SAVER_TIME;
        !            85: int  defaultScreenSaverBlanking = DefaultBlanking;
        !            86: int  defaultScreenSaverAllowExposures = DefaultExposures;
        !            87: 
        !            88: char *defaultFontPath = COMPILEDDEFAULTFONTPATH;
        !            89: char *defaultTextFont = COMPILEDDEFAULTFONT;
        !            90: char *defaultCursorFont = COMPILEDCURSORFONT;
        !            91: char *rgbPath = RGB_DB;
        !            92: FontPtr defaultFont;   /* not declared in dix.h to avoid including font.h in
        !            93:                        every compilation of dix code */
        !            94: CursorPtr rootCursor;
        !            95: ClientPtr requestingClient;    /* many nasty things hidden under this rock */
        !            96: 
        !            97: TimeStamp currentTime;
        !            98: 
        !            99: char *display;
        !           100: 
        !           101: int TimeOutValue = DEFAULT_TIMEOUT;
        !           102: int    argcGlobal;
        !           103: char   **argvGlobal;

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.