globals.h 2.69 KB
Newer Older
Kaleb Keithley Keithley's avatar
Kaleb Keithley Keithley committed
1
2
3
4

#ifndef _XSERV_GLOBAL_H_
#define _XSERV_GLOBAL_H_

5
6
#include <signal.h>

7
#include "window.h"             /* for WindowPtr */
Kaleb Keithley Keithley's avatar
Kaleb Keithley Keithley committed
8
9
10

/* Global X server variables that are visible to mi, dix, os, and ddx */

11
12
13
14
extern _X_EXPORT CARD32 defaultScreenSaverTime;
extern _X_EXPORT CARD32 defaultScreenSaverInterval;
extern _X_EXPORT CARD32 ScreenSaverTime;
extern _X_EXPORT CARD32 ScreenSaverInterval;
Kaleb Keithley Keithley's avatar
Kaleb Keithley Keithley committed
15

16
#ifdef SCREENSAVER
17
extern _X_EXPORT Bool screenSaverSuspended;
18
19
#endif

20
21
22
extern _X_EXPORT char *defaultFontPath;
extern _X_EXPORT int monitorResolution;
extern _X_EXPORT int defaultColorVisualClass;
Kaleb Keithley Keithley's avatar
Kaleb Keithley Keithley committed
23

24
25
extern _X_EXPORT int GrabInProgress;
extern _X_EXPORT Bool noTestExtensions;
26
extern _X_EXPORT char *SeatId;
27
extern _X_EXPORT char *ConnectionInfo;
28
extern _X_EXPORT sig_atomic_t inSignalContext;
29

Kaleb Keithley Keithley's avatar
Kaleb Keithley Keithley committed
30
#ifdef DPMSExtension
31
32
33
34
35
36
37
extern _X_EXPORT CARD32 DPMSStandbyTime;
extern _X_EXPORT CARD32 DPMSSuspendTime;
extern _X_EXPORT CARD32 DPMSOffTime;
extern _X_EXPORT CARD16 DPMSPowerLevel;
extern _X_EXPORT Bool DPMSEnabled;
extern _X_EXPORT Bool DPMSDisabledSwitch;
extern _X_EXPORT Bool DPMSCapableFlag;
Kaleb Keithley Keithley's avatar
Kaleb Keithley Keithley committed
38
39
40
#endif

#ifdef PANORAMIX
41
extern _X_EXPORT Bool PanoramiXExtensionDisabledHack;
Kaleb Keithley Keithley's avatar
Kaleb Keithley Keithley committed
42
43
#endif

44
#ifdef COMPOSITE
45
extern _X_EXPORT Bool noCompositeExtension;
46
47
48
#endif

#ifdef DAMAGE
49
extern _X_EXPORT Bool noDamageExtension;
50
51
52
#endif

#ifdef DBE
53
extern _X_EXPORT Bool noDbeExtension;
54
55
56
#endif

#ifdef DPMSExtension
57
extern _X_EXPORT Bool noDPMSExtension;
58
59
60
#endif

#ifdef GLXEXT
61
extern _X_EXPORT Bool noGlxExtension;
62
63
64
#endif

#ifdef SCREENSAVER
65
extern _X_EXPORT Bool noScreenSaverExtension;
66
67
68
#endif

#ifdef MITSHM
69
extern _X_EXPORT Bool noMITShmExtension;
70
71
72
#endif

#ifdef RANDR
73
extern _X_EXPORT Bool noRRExtension;
74
75
#endif

76
extern _X_EXPORT Bool noRenderExtension;
77

78
#ifdef XCSECURITY
79
extern _X_EXPORT Bool noSecurityExtension;
80
81
82
#endif

#ifdef RES
83
extern _X_EXPORT Bool noResExtension;
84
85
86
#endif

#ifdef XF86BIGFONT
87
extern _X_EXPORT Bool noXFree86BigfontExtension;
88
89
90
#endif

#ifdef XFreeXDGA
91
extern _X_EXPORT Bool noXFree86DGAExtension;
92
93
94
#endif

#ifdef XF86DRI
95
extern _X_EXPORT Bool noXFree86DRIExtension;
96
97
98
#endif

#ifdef XF86VIDMODE
99
extern _X_EXPORT Bool noXFree86VidModeExtension;
100
101
102
#endif

#ifdef XFIXES
103
extern _X_EXPORT Bool noXFixesExtension;
104
105
106
#endif

#ifdef PANORAMIX
107
extern _X_EXPORT Bool noPanoramiXExtension;
108
109
#endif

110
111
112
113
#ifdef INXQUARTZ
extern _X_EXPORT Bool noPseudoramiXExtension;
#endif

114
#ifdef XSELINUX
115
extern _X_EXPORT Bool noSELinuxExtension;
116
117
118
119
120

#define SELINUX_MODE_DEFAULT    0
#define SELINUX_MODE_DISABLED   1
#define SELINUX_MODE_PERMISSIVE 2
#define SELINUX_MODE_ENFORCING  3
121
extern _X_EXPORT int selinuxEnforcingState;
122
123
#endif

124
#ifdef XV
125
126
127
128
129
extern _X_EXPORT Bool noXvExtension;
#endif

#ifdef DRI2
extern _X_EXPORT Bool noDRI2Extension;
130
131
#endif

132
#endif                          /* !_XSERV_GLOBAL_H_ */