1706f2543Smrg
2706f2543Smrg#ifndef _XSERV_GLOBAL_H_
3706f2543Smrg#define _XSERV_GLOBAL_H_
4706f2543Smrg
5706f2543Smrg#include "window.h"	/* for WindowPtr */
6706f2543Smrg
7706f2543Smrg/* Global X server variables that are visible to mi, dix, os, and ddx */
8706f2543Smrg
9706f2543Smrgextern _X_EXPORT CARD32 defaultScreenSaverTime;
10706f2543Smrgextern _X_EXPORT CARD32 defaultScreenSaverInterval;
11706f2543Smrgextern _X_EXPORT CARD32 ScreenSaverTime;
12706f2543Smrgextern _X_EXPORT CARD32 ScreenSaverInterval;
13706f2543Smrg
14706f2543Smrg#ifdef SCREENSAVER
15706f2543Smrgextern _X_EXPORT Bool screenSaverSuspended;
16706f2543Smrg#endif
17706f2543Smrg
18706f2543Smrgextern _X_EXPORT char *defaultFontPath;
19706f2543Smrgextern _X_EXPORT int monitorResolution;
20706f2543Smrgextern _X_EXPORT int defaultColorVisualClass;
21706f2543Smrg
22706f2543Smrgextern _X_EXPORT int GrabInProgress;
23706f2543Smrgextern _X_EXPORT Bool noTestExtensions;
24706f2543Smrg
25706f2543Smrgextern _X_EXPORT char *ConnectionInfo;
26706f2543Smrg
27706f2543Smrg#ifdef DPMSExtension
28706f2543Smrgextern _X_EXPORT CARD32 DPMSStandbyTime;
29706f2543Smrgextern _X_EXPORT CARD32 DPMSSuspendTime;
30706f2543Smrgextern _X_EXPORT CARD32 DPMSOffTime;
31706f2543Smrgextern _X_EXPORT CARD16 DPMSPowerLevel;
32706f2543Smrgextern _X_EXPORT Bool DPMSEnabled;
33706f2543Smrgextern _X_EXPORT Bool DPMSDisabledSwitch;
34706f2543Smrgextern _X_EXPORT Bool DPMSCapableFlag;
35706f2543Smrg#endif
36706f2543Smrg
37706f2543Smrg#ifdef PANORAMIX
38706f2543Smrgextern _X_EXPORT Bool PanoramiXExtensionDisabledHack;
39706f2543Smrg#endif
40706f2543Smrg
41706f2543Smrg#ifdef COMPOSITE
42706f2543Smrgextern _X_EXPORT Bool noCompositeExtension;
43706f2543Smrg#endif
44706f2543Smrg
45706f2543Smrg#ifdef DAMAGE
46706f2543Smrgextern _X_EXPORT Bool noDamageExtension;
47706f2543Smrg#endif
48706f2543Smrg
49706f2543Smrg#ifdef DBE
50706f2543Smrgextern _X_EXPORT Bool noDbeExtension;
51706f2543Smrg#endif
52706f2543Smrg
53706f2543Smrg#ifdef DPMSExtension
54706f2543Smrgextern _X_EXPORT Bool noDPMSExtension;
55706f2543Smrg#endif
56706f2543Smrg
57706f2543Smrg#ifdef GLXEXT
58706f2543Smrgextern _X_EXPORT Bool noGlxExtension;
59706f2543Smrg#endif
60706f2543Smrg
61706f2543Smrg#ifdef SCREENSAVER
62706f2543Smrgextern _X_EXPORT Bool noScreenSaverExtension;
63706f2543Smrg#endif
64706f2543Smrg
65706f2543Smrg#ifdef MITSHM
66706f2543Smrgextern _X_EXPORT Bool noMITShmExtension;
67706f2543Smrg#endif
68706f2543Smrg
69706f2543Smrg#ifdef RANDR
70706f2543Smrgextern _X_EXPORT Bool noRRExtension;
71706f2543Smrg#endif
72706f2543Smrg
73706f2543Smrgextern _X_EXPORT Bool noRenderExtension;
74706f2543Smrg
75706f2543Smrg#ifdef XCSECURITY
76706f2543Smrgextern _X_EXPORT Bool noSecurityExtension;
77706f2543Smrg#endif
78706f2543Smrg
79706f2543Smrg#ifdef RES
80706f2543Smrgextern _X_EXPORT Bool noResExtension;
81706f2543Smrg#endif
82706f2543Smrg
83706f2543Smrg#ifdef XF86BIGFONT
84706f2543Smrgextern _X_EXPORT Bool noXFree86BigfontExtension;
85706f2543Smrg#endif
86706f2543Smrg
87706f2543Smrg#ifdef XFreeXDGA
88706f2543Smrgextern _X_EXPORT Bool noXFree86DGAExtension;
89706f2543Smrg#endif
90706f2543Smrg
91706f2543Smrg#ifdef XF86DRI
92706f2543Smrgextern _X_EXPORT Bool noXFree86DRIExtension;
93706f2543Smrg#endif
94706f2543Smrg
95706f2543Smrg#ifdef XF86VIDMODE
96706f2543Smrgextern _X_EXPORT Bool noXFree86VidModeExtension;
97706f2543Smrg#endif
98706f2543Smrg
99706f2543Smrg#ifdef XFIXES
100706f2543Smrgextern _X_EXPORT Bool noXFixesExtension;
101706f2543Smrg#endif
102706f2543Smrg
103706f2543Smrg#ifdef PANORAMIX
104706f2543Smrgextern _X_EXPORT Bool noPanoramiXExtension;
105706f2543Smrg#endif
106706f2543Smrg
107706f2543Smrg#ifdef XSELINUX
108706f2543Smrgextern _X_EXPORT Bool noSELinuxExtension;
109706f2543Smrg
110706f2543Smrg#define SELINUX_MODE_DEFAULT    0
111706f2543Smrg#define SELINUX_MODE_DISABLED   1
112706f2543Smrg#define SELINUX_MODE_PERMISSIVE 2
113706f2543Smrg#define SELINUX_MODE_ENFORCING  3
114706f2543Smrgextern _X_EXPORT int selinuxEnforcingState;
115706f2543Smrg#endif
116706f2543Smrg
117706f2543Smrg#ifdef XV
118706f2543Smrgextern _X_EXPORT Bool noXvExtension;
119706f2543Smrg#endif
120706f2543Smrg
121706f2543Smrg#ifdef DRI2
122706f2543Smrgextern _X_EXPORT Bool noDRI2Extension;
123706f2543Smrg#endif
124706f2543Smrg
125706f2543Smrg#endif /* !_XSERV_GLOBAL_H_ */
126