(submit/miext-extinit) xfree86: dga: unexport noXFree86DGAExtension and move into extension

This isn't needed by any external module, so no need to export it.
And those flags are better off in the corresponding extension,
instead of the OS layer.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-06-28 23:05:48 +02:00
parent 089d03422c
commit 0ed49c0280
3 changed files with 5 additions and 6 deletions

View File

@ -77,6 +77,8 @@
#include "dgaproc.h" #include "dgaproc.h"
#include "protocol-versions.h" #include "protocol-versions.h"
Bool noXFree86DGAExtension = FALSE;
#define DGA_PROTOCOL_OLD_SUPPORT 1 #define DGA_PROTOCOL_OLD_SUPPORT 1
static DevPrivateKeyRec DGAScreenKeyRec; static DevPrivateKeyRec DGAScreenKeyRec;

View File

@ -47,9 +47,9 @@ extern void XFree86VidModeExtensionInit(void);
#ifdef XFreeXDGA #ifdef XFreeXDGA
#include <X11/extensions/xf86dgaproto.h> #include <X11/extensions/xf86dgaproto.h>
extern _X_EXPORT Bool noXFree86DGAExtension; extern Bool noXFree86DGAExtension;
extern void XFree86DGAExtensionInit(void); void XFree86DGAExtensionInit(void);
extern void XFree86DGARegister(void); void XFree86DGARegister(void);
#endif #endif
#endif #endif

View File

@ -121,9 +121,6 @@ __stdcall unsigned long GetTickCount(void);
#include "dixstruct_priv.h" #include "dixstruct_priv.h"
#include "dpmsproc.h" #include "dpmsproc.h"
#ifdef XFreeXDGA
Bool noXFree86DGAExtension = FALSE;
#endif
#ifdef XF86VIDMODE #ifdef XF86VIDMODE
Bool noXFree86VidModeExtension = FALSE; Bool noXFree86VidModeExtension = FALSE;
#endif #endif