dix: unexport AddScreen() and AddGPUScreen()

These aren't used by any drivers/modules, just DDX'es, so no need to export.

Note: tigervnc does use it, but it has it's own DDX, therefore directly
linked in, just like the in-tree DDX'es which doesn't need exporting.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1349>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-03-01 13:47:23 +01:00 committed by Marge Bot
parent dc84331f5d
commit 27b83c4cd0
10 changed files with 41 additions and 4 deletions

View File

@ -106,6 +106,9 @@ Equipment Corporation.
#include "windowstr.h" #include "windowstr.h"
#include <X11/fonts/fontstruct.h> #include <X11/fonts/fontstruct.h>
#include <X11/fonts/libxfont2.h> #include <X11/fonts/libxfont2.h>
#include "dix/screenint_priv.h"
#include "dixfontstr.h" #include "dixfontstr.h"
#include "dix_priv.h" #include "dix_priv.h"
#include "gcstruct.h" #include "gcstruct.h"

18
dix/screenint_priv.h Normal file
View File

@ -0,0 +1,18 @@
/* SPDX-License-Identifier: MIT OR X11
*
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
* Copyright © 1987, 1998 The Open Group
*/
#ifndef _XSERVER_DIX_SCREENINT_PRIV_H
#define _XSERVER_DIX_SCREENINT_PRIV_H
#include <X11/Xdefs.h>
typedef struct _Screen *ScreenPtr;
typedef Bool (*ScreenInitProcPtr)(ScreenPtr pScreen, int argc, char **argv);
int AddScreen(ScreenInitProcPtr pfnInit, int argc, char **argv);
int AddGPUScreen(ScreenInitProcPtr pfnInit, int argc, char **argv);
#endif /* _XSERVER_DIX_SCREENINT_PRIV_H */

View File

@ -23,6 +23,9 @@
#ifdef HAVE_DIX_CONFIG_H #ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h> #include <dix-config.h>
#endif #endif
#include "dix/screenint_priv.h"
#include "kdrive.h" #include "kdrive.h"
#include <mivalidate.h> #include <mivalidate.h>
#include <dixstruct.h> #include <dixstruct.h>

View File

@ -37,6 +37,9 @@ from The Open Group.
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include <X11/Xos.h> #include <X11/Xos.h>
#include "dix/screenint_priv.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "servermd.h" #include "servermd.h"
#define PSZ 8 #define PSZ 8

View File

@ -47,6 +47,9 @@
#include <X11/Xmd.h> #include <X11/Xmd.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include <X11/Xatom.h> #include <X11/Xatom.h>
#include "dix/screenint_priv.h"
#include "input.h" #include "input.h"
#include "servermd.h" #include "servermd.h"
#include "windowstr.h" #include "windowstr.h"

View File

@ -36,6 +36,9 @@
#include <pciaccess.h> #include <pciaccess.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include "dix/screenint_priv.h"
#include "os.h" #include "os.h"
#include "hotplug.h" #include "hotplug.h"
#include "systemd-logind.h" #include "systemd-logind.h"

View File

@ -18,6 +18,9 @@ is" without express or implied warranty.
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include "dix/screenint_priv.h"
#include "screenint.h" #include "screenint.h"
#include "input.h" #include "input.h"
#include "misc.h" #include "misc.h"

View File

@ -33,6 +33,9 @@
#include <errno.h> #include <errno.h>
#include <X11/Xatom.h> #include <X11/Xatom.h>
#include "dix/screenint_priv.h"
#include <selection.h> #include <selection.h>
#include <micmap.h> #include <micmap.h>
#include <misyncshm.h> #include <misyncshm.h>

View File

@ -56,6 +56,8 @@ typedef WINAPI HRESULT(*SHGETFOLDERPATHPROC) (HWND hwndOwner,
DWORD dwFlags, LPTSTR pszPath); DWORD dwFlags, LPTSTR pszPath);
#endif #endif
#include "dix/screenint_priv.h"
#include "winmonitors.h" #include "winmonitors.h"
#include "nonsdk_extinit.h" #include "nonsdk_extinit.h"
#include "pseudoramiX/pseudoramiX.h" #include "pseudoramiX/pseudoramiX.h"

View File

@ -54,10 +54,6 @@ typedef struct _Visual *VisualPtr;
typedef struct _Depth *DepthPtr; typedef struct _Depth *DepthPtr;
typedef struct _Screen *ScreenPtr; typedef struct _Screen *ScreenPtr;
typedef Bool (*ScreenInitProcPtr)(ScreenPtr pScreen, int argc, char **argv);
extern _X_EXPORT int AddScreen(ScreenInitProcPtr pfnInit, int argc, char **argv);
extern _X_EXPORT int AddGPUScreen(ScreenInitProcPtr pfnInit, int argc, char **argv);
extern _X_EXPORT void RemoveGPUScreen(ScreenPtr pScreen); extern _X_EXPORT void RemoveGPUScreen(ScreenPtr pScreen);
extern _X_EXPORT void extern _X_EXPORT void