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 #include + +#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 + * Copyright © 1987, 1998 The Open Group + */ +#ifndef _XSERVER_DIX_SCREENINT_PRIV_H +#define _XSERVER_DIX_SCREENINT_PRIV_H + +#include + +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 #endif + +#include "dix/screenint_priv.h" + #include "kdrive.h" #include #include 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 #include #include + +#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 #include #include + +#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 #include #include + +#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 #include + +#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 #include + +#include "dix/screenint_priv.h" + #include #include #include 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