dix: unexport global variables

Those aren't used by drivers, so no need to export them.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1375>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-03-07 14:39:50 +01:00 committed by Marge Bot
parent 30b403b0f0
commit 040e41c7e9
11 changed files with 40 additions and 22 deletions

View File

@ -32,12 +32,14 @@ from The Open Group.
#include <X11/X.h>
#include <X11/Xproto.h>
#include <X11/extensions/bigreqsproto.h>
#include "dix/dix_priv.h"
#include "misc.h"
#include "os.h"
#include "dixstruct.h"
#include "dix_priv.h"
#include "extnsionst.h"
#include <X11/extensions/bigreqsproto.h>
#include "opaque.h"
#include "extinit.h"

View File

@ -101,6 +101,7 @@ Equipment Corporation.
#include <version-config.h>
#endif
#include "dix/dix_priv.h"
#include "dix/registry_priv.h"
#include "windowstr.h"
@ -110,7 +111,6 @@ Equipment Corporation.
#include "dix/screenint_priv.h"
#include "dixfontstr.h"
#include "dix_priv.h"
#include "gcstruct.h"
#include "selection.h"
#include "colormapst.h"

View File

@ -11,10 +11,27 @@
* Xserver's module API/ABI.
*/
#include <X11/Xdefs.h>
#include <X11/Xfuncproto.h>
#include "include/dix.h"
/* server setting: maximum size for big requests */
#define MAX_BIG_REQUEST_SIZE 4194303
extern long maxBigRequestSize;
extern char dispatchExceptionAtReset;
extern int terminateDelay;
extern Bool touchEmulatePointer;
extern HWEventQueuePtr checkForInput[2];
static inline _X_NOTSAN Bool
InputCheckPending(void)
{
return (*checkForInput[0] != *checkForInput[1]);
}
void ClearWorkQueue(void);
void ProcessWorkQueue(void);
void ProcessWorkQueueZombies(void);

View File

@ -50,13 +50,15 @@ SOFTWARE.
#include <X11/X.h>
#include <X11/Xmd.h>
#include "dix/dix_priv.h"
#include "misc.h"
#include "windowstr.h"
#include "scrnintstr.h"
#include "input.h"
#include "dixfont.h"
#include "dixstruct.h"
#include "dix_priv.h"
#include "os.h"
ScreenInfo screenInfo;

View File

@ -28,6 +28,8 @@
#include <dix-config.h>
#endif
#include "dix/dix_priv.h"
#include "inputstr.h"
#include "scrnintstr.h"
#include "dixgrabs.h"

View File

@ -34,6 +34,7 @@
#include <X11/Xatom.h>
#include "dix/dix_priv.h"
#include "dix/screenint_priv.h"
#include <selection.h>

View File

@ -145,26 +145,15 @@ typedef struct _WorkQueue *WorkQueuePtr;
extern _X_EXPORT ClientPtr clients[MAXCLIENTS];
extern _X_EXPORT ClientPtr serverClient;
extern _X_EXPORT int currentMaxClients;
extern _X_EXPORT char dispatchExceptionAtReset;
extern _X_EXPORT int terminateDelay;
extern _X_EXPORT Bool touchEmulatePointer;
typedef int HWEventQueueType;
typedef HWEventQueueType *HWEventQueuePtr;
extern _X_EXPORT HWEventQueuePtr checkForInput[2];
static inline _X_NOTSAN Bool
InputCheckPending(void)
{
return (*checkForInput[0] != *checkForInput[1]);
}
typedef struct _TimeStamp {
CARD32 months; /* really ~49.7 days */
CARD32 milliseconds;
} TimeStamp;
typedef int HWEventQueueType;
typedef HWEventQueueType *HWEventQueuePtr;
/* dispatch.c */
extern _X_EXPORT ClientPtr GetCurrentClient(void);

View File

@ -56,12 +56,12 @@ SOFTWARE.
#include <dix-config.h>
#endif
#include <errno.h>
#include <stdio.h>
#ifdef WIN32
#include <X11/Xwinsock.h>
#endif
#include <X11/Xos.h> /* for strings, fcntl, time */
#include <errno.h>
#include <stdio.h>
#include <X11/X.h>
#include "dix/dix_priv.h"

View File

@ -72,11 +72,13 @@ SOFTWARE.
#endif
#include <X11/X.h>
#include <X11/Xproto.h>
#include "dix/dix_priv.h"
#include "os.h"
#include "osdep.h"
#include "opaque.h"
#include "dixstruct.h"
#include "dix_priv.h"
#include "misc.h"
CallbackListPtr ReplyCallback;

View File

@ -103,8 +103,9 @@ __stdcall unsigned long GetTickCount(void);
#endif
#endif
#include "dix/dix_priv.h"
#include "dixstruct.h"
#include "dix_priv.h"
#include "xkbsrv.h"
#include "picture.h"

View File

@ -46,6 +46,8 @@
#include <dix-config.h>
#endif
#include "dix/dix_priv.h"
#include "xfixesint.h"
#include "opaque.h"