diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-03-01 13:47:23 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-03-03 23:24:28 +0000 |
commit | 27b83c4cd0c3dab27101a8e9dd25b7bd6a206f3d (patch) | |
tree | 96563d9873c85784924cbde33046e8935d149160 | |
parent | dc84331f5d344d3241cb2c30cee43cf016a2d3e8 (diff) |
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>
-rw-r--r-- | dix/dispatch.c | 3 | ||||
-rw-r--r-- | dix/screenint_priv.h | 18 | ||||
-rw-r--r-- | hw/kdrive/src/kdrive.c | 3 | ||||
-rw-r--r-- | hw/vfb/InitOutput.c | 3 | ||||
-rw-r--r-- | hw/xfree86/common/xf86Init.c | 3 | ||||
-rw-r--r-- | hw/xfree86/common/xf86platformBus.c | 3 | ||||
-rw-r--r-- | hw/xnest/Init.c | 3 | ||||
-rw-r--r-- | hw/xwayland/xwayland.c | 3 | ||||
-rw-r--r-- | hw/xwin/InitOutput.c | 2 | ||||
-rw-r--r-- | include/screenint.h | 4 |
10 files changed, 41 insertions, 4 deletions
diff --git a/dix/dispatch.c b/dix/dispatch.c index 6b5de5688..e88e8de1d 100644 --- a/dix/dispatch.c +++ b/dix/dispatch.c @@ -106,6 +106,9 @@ Equipment Corporation. #include "windowstr.h" #include <X11/fonts/fontstruct.h> #include <X11/fonts/libxfont2.h> + +#include "dix/screenint_priv.h" + #include "dixfontstr.h" #include "dix_priv.h" #include "gcstruct.h" diff --git a/dix/screenint_priv.h b/dix/screenint_priv.h new file mode 100644 index 000000000..df8f12214 --- /dev/null +++ b/dix/screenint_priv.h @@ -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 */ diff --git a/hw/kdrive/src/kdrive.c b/hw/kdrive/src/kdrive.c index 8ee41f908..fce08afbc 100644 --- a/hw/kdrive/src/kdrive.c +++ b/hw/kdrive/src/kdrive.c @@ -23,6 +23,9 @@ #ifdef HAVE_DIX_CONFIG_H #include <dix-config.h> #endif + +#include "dix/screenint_priv.h" + #include "kdrive.h" #include <mivalidate.h> #include <dixstruct.h> diff --git a/hw/vfb/InitOutput.c b/hw/vfb/InitOutput.c index f01901153..9bc23906a 100644 --- a/hw/vfb/InitOutput.c +++ b/hw/vfb/InitOutput.c @@ -37,6 +37,9 @@ from The Open Group. #include <X11/X.h> #include <X11/Xproto.h> #include <X11/Xos.h> + +#include "dix/screenint_priv.h" + #include "scrnintstr.h" #include "servermd.h" #define PSZ 8 diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c index cfa5fbbc8..5a5f1fd0c 100644 --- a/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c @@ -47,6 +47,9 @@ #include <X11/Xmd.h> #include <X11/Xproto.h> #include <X11/Xatom.h> + +#include "dix/screenint_priv.h" + #include "input.h" #include "servermd.h" #include "windowstr.h" diff --git a/hw/xfree86/common/xf86platformBus.c b/hw/xfree86/common/xf86platformBus.c index b7fdb4dd6..ba6f39984 100644 --- a/hw/xfree86/common/xf86platformBus.c +++ b/hw/xfree86/common/xf86platformBus.c @@ -36,6 +36,9 @@ #include <pciaccess.h> #include <fcntl.h> #include <unistd.h> + +#include "dix/screenint_priv.h" + #include "os.h" #include "hotplug.h" #include "systemd-logind.h" diff --git a/hw/xnest/Init.c b/hw/xnest/Init.c index cd4ee61f9..1f18e335b 100644 --- a/hw/xnest/Init.c +++ b/hw/xnest/Init.c @@ -18,6 +18,9 @@ is" without express or implied warranty. #include <X11/X.h> #include <X11/Xproto.h> + +#include "dix/screenint_priv.h" + #include "screenint.h" #include "input.h" #include "misc.h" diff --git a/hw/xwayland/xwayland.c b/hw/xwayland/xwayland.c index 56964bbfb..a1914fff6 100644 --- a/hw/xwayland/xwayland.c +++ b/hw/xwayland/xwayland.c @@ -33,6 +33,9 @@ #include <errno.h> #include <X11/Xatom.h> + +#include "dix/screenint_priv.h" + #include <selection.h> #include <micmap.h> #include <misyncshm.h> diff --git a/hw/xwin/InitOutput.c b/hw/xwin/InitOutput.c index 5ce717b29..9db2a28fa 100644 --- a/hw/xwin/InitOutput.c +++ b/hw/xwin/InitOutput.c @@ -56,6 +56,8 @@ typedef WINAPI HRESULT(*SHGETFOLDERPATHPROC) (HWND hwndOwner, DWORD dwFlags, LPTSTR pszPath); #endif +#include "dix/screenint_priv.h" + #include "winmonitors.h" #include "nonsdk_extinit.h" #include "pseudoramiX/pseudoramiX.h" diff --git a/include/screenint.h b/include/screenint.h index 0a4527832..30ad72719 100644 --- a/include/screenint.h +++ b/include/screenint.h @@ -54,10 +54,6 @@ typedef struct _Visual *VisualPtr; typedef struct _Depth *DepthPtr; 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 |