9838b7032e
This is strictly the application of the script 'x-indent-all.sh' from util/modular. Compared to the patch that Daniel posted in January, I've added a few indent flags: -bap -psl -T PrivatePtr -T pmWait -T _XFUNCPROTOBEGIN -T _XFUNCPROTOEND -T _X_EXPORT The typedefs were needed to make the output of sdksyms.sh match the previous output, otherwise, the code is formatted badly enough that sdksyms.sh generates incorrect output. The generated code was compared with the previous version and found to be essentially identical -- "assert" line numbers and BUILD_TIME were the only differences found. The comparison was done with this script: dir1=$1 dir2=$2 for dir in $dir1 $dir2; do (cd $dir && find . -name '*.o' | while read file; do dir=`dirname $file` base=`basename $file .o` dump=$dir/$base.dump objdump -d $file > $dump done) done find $dir1 -name '*.dump' | while read dump; do otherdump=`echo $dump | sed "s;$dir1;$dir2;"` diff -u $dump $otherdump done Signed-off-by: Keith Packard <keithp@keithp.com> Acked-by: Daniel Stone <daniel@fooishbar.org> Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com>
126 lines
2.6 KiB
C
126 lines
2.6 KiB
C
|
|
#ifndef _XSERV_GLOBAL_H_
|
|
#define _XSERV_GLOBAL_H_
|
|
|
|
#include "window.h" /* for WindowPtr */
|
|
|
|
/* Global X server variables that are visible to mi, dix, os, and ddx */
|
|
|
|
extern _X_EXPORT CARD32 defaultScreenSaverTime;
|
|
extern _X_EXPORT CARD32 defaultScreenSaverInterval;
|
|
extern _X_EXPORT CARD32 ScreenSaverTime;
|
|
extern _X_EXPORT CARD32 ScreenSaverInterval;
|
|
|
|
#ifdef SCREENSAVER
|
|
extern _X_EXPORT Bool screenSaverSuspended;
|
|
#endif
|
|
|
|
extern _X_EXPORT char *defaultFontPath;
|
|
extern _X_EXPORT int monitorResolution;
|
|
extern _X_EXPORT int defaultColorVisualClass;
|
|
|
|
extern _X_EXPORT int GrabInProgress;
|
|
extern _X_EXPORT Bool noTestExtensions;
|
|
extern _X_EXPORT char *SeatId;
|
|
extern _X_EXPORT char *ConnectionInfo;
|
|
|
|
#ifdef DPMSExtension
|
|
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;
|
|
#endif
|
|
|
|
#ifdef PANORAMIX
|
|
extern _X_EXPORT Bool PanoramiXExtensionDisabledHack;
|
|
#endif
|
|
|
|
#ifdef COMPOSITE
|
|
extern _X_EXPORT Bool noCompositeExtension;
|
|
#endif
|
|
|
|
#ifdef DAMAGE
|
|
extern _X_EXPORT Bool noDamageExtension;
|
|
#endif
|
|
|
|
#ifdef DBE
|
|
extern _X_EXPORT Bool noDbeExtension;
|
|
#endif
|
|
|
|
#ifdef DPMSExtension
|
|
extern _X_EXPORT Bool noDPMSExtension;
|
|
#endif
|
|
|
|
#ifdef GLXEXT
|
|
extern _X_EXPORT Bool noGlxExtension;
|
|
#endif
|
|
|
|
#ifdef SCREENSAVER
|
|
extern _X_EXPORT Bool noScreenSaverExtension;
|
|
#endif
|
|
|
|
#ifdef MITSHM
|
|
extern _X_EXPORT Bool noMITShmExtension;
|
|
#endif
|
|
|
|
#ifdef RANDR
|
|
extern _X_EXPORT Bool noRRExtension;
|
|
#endif
|
|
|
|
extern _X_EXPORT Bool noRenderExtension;
|
|
|
|
#ifdef XCSECURITY
|
|
extern _X_EXPORT Bool noSecurityExtension;
|
|
#endif
|
|
|
|
#ifdef RES
|
|
extern _X_EXPORT Bool noResExtension;
|
|
#endif
|
|
|
|
#ifdef XF86BIGFONT
|
|
extern _X_EXPORT Bool noXFree86BigfontExtension;
|
|
#endif
|
|
|
|
#ifdef XFreeXDGA
|
|
extern _X_EXPORT Bool noXFree86DGAExtension;
|
|
#endif
|
|
|
|
#ifdef XF86DRI
|
|
extern _X_EXPORT Bool noXFree86DRIExtension;
|
|
#endif
|
|
|
|
#ifdef XF86VIDMODE
|
|
extern _X_EXPORT Bool noXFree86VidModeExtension;
|
|
#endif
|
|
|
|
#ifdef XFIXES
|
|
extern _X_EXPORT Bool noXFixesExtension;
|
|
#endif
|
|
|
|
#ifdef PANORAMIX
|
|
extern _X_EXPORT Bool noPanoramiXExtension;
|
|
#endif
|
|
|
|
#ifdef XSELINUX
|
|
extern _X_EXPORT Bool noSELinuxExtension;
|
|
|
|
#define SELINUX_MODE_DEFAULT 0
|
|
#define SELINUX_MODE_DISABLED 1
|
|
#define SELINUX_MODE_PERMISSIVE 2
|
|
#define SELINUX_MODE_ENFORCING 3
|
|
extern _X_EXPORT int selinuxEnforcingState;
|
|
#endif
|
|
|
|
#ifdef XV
|
|
extern _X_EXPORT Bool noXvExtension;
|
|
#endif
|
|
|
|
#ifdef DRI2
|
|
extern _X_EXPORT Bool noDRI2Extension;
|
|
#endif
|
|
|
|
#endif /* !_XSERV_GLOBAL_H_ */
|