2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
#ifndef _XSERV_GLOBAL_H_
|
|
|
|
#define _XSERV_GLOBAL_H_
|
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
#include "window.h" /* for WindowPtr */
|
2013-06-07 11:28:45 -06:00
|
|
|
#include "extinit.h"
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
/* Global X server variables that are visible to mi, dix, os, and ddx */
|
|
|
|
|
2010-07-27 13:02:24 -06:00
|
|
|
extern _X_EXPORT CARD32 defaultScreenSaverTime;
|
|
|
|
extern _X_EXPORT CARD32 defaultScreenSaverInterval;
|
|
|
|
extern _X_EXPORT CARD32 ScreenSaverTime;
|
|
|
|
extern _X_EXPORT CARD32 ScreenSaverInterval;
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
#ifdef SCREENSAVER
|
2010-07-27 13:02:24 -06:00
|
|
|
extern _X_EXPORT Bool screenSaverSuspended;
|
2006-11-26 11:13:41 -07:00
|
|
|
#endif
|
|
|
|
|
2014-09-27 11:52:59 -06:00
|
|
|
extern _X_EXPORT const char *defaultFontPath;
|
2010-07-27 13:02:24 -06:00
|
|
|
extern _X_EXPORT int monitorResolution;
|
|
|
|
extern _X_EXPORT int defaultColorVisualClass;
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2010-07-27 13:02:24 -06:00
|
|
|
extern _X_EXPORT int GrabInProgress;
|
|
|
|
extern _X_EXPORT Bool noTestExtensions;
|
2012-06-10 07:21:05 -06:00
|
|
|
extern _X_EXPORT char *SeatId;
|
2010-07-27 13:02:24 -06:00
|
|
|
extern _X_EXPORT char *ConnectionInfo;
|
2013-06-07 11:28:45 -06:00
|
|
|
extern _X_EXPORT sig_atomic_t inSignalContext;
|
2009-09-06 13:44:18 -06:00
|
|
|
|
2006-11-26 11:13:41 -07:00
|
|
|
#ifdef DPMSExtension
|
2010-07-27 13:02:24 -06:00
|
|
|
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;
|
2006-11-26 11:13:41 -07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef PANORAMIX
|
2010-07-27 13:02:24 -06:00
|
|
|
extern _X_EXPORT Bool PanoramiXExtensionDisabledHack;
|
2006-11-26 11:13:41 -07:00
|
|
|
#endif
|
|
|
|
|
2008-11-02 08:26:08 -07:00
|
|
|
#ifdef XSELINUX
|
|
|
|
#define SELINUX_MODE_DEFAULT 0
|
|
|
|
#define SELINUX_MODE_DISABLED 1
|
|
|
|
#define SELINUX_MODE_PERMISSIVE 2
|
|
|
|
#define SELINUX_MODE_ENFORCING 3
|
2010-07-27 13:02:24 -06:00
|
|
|
extern _X_EXPORT int selinuxEnforcingState;
|
2008-11-02 08:26:08 -07:00
|
|
|
#endif
|
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
#endif /* !_XSERV_GLOBAL_H_ */
|