diff --git a/dix/dispatch.c b/dix/dispatch.c index c5faa2904..14f16e453 100644 --- a/dix/dispatch.c +++ b/dix/dispatch.c @@ -120,7 +120,6 @@ Equipment Corporation. #include "os/screensaver.h" #include "windowstr.h" -#include "ddx.h" #include "dixfontstr.h" #include "gcstruct.h" #include "colormapst.h" diff --git a/dix/main.c b/dix/main.c index 5a7a44434..a079150f3 100644 --- a/dix/main.c +++ b/dix/main.c @@ -112,7 +112,6 @@ Equipment Corporation. #include "colormapst.h" #include "cursorstr.h" #include "servermd.h" -#include "ddx.h" #include "dixfont.h" #include "extnsionst.h" #include "privates.h" diff --git a/hw/kdrive/ephyr/ephyrinit.c b/hw/kdrive/ephyr/ephyrinit.c index 742f98ac1..9306f3367 100644 --- a/hw/kdrive/ephyr/ephyrinit.c +++ b/hw/kdrive/ephyr/ephyrinit.c @@ -30,7 +30,6 @@ #include "os/ddx_priv.h" #include "os/osdep.h" -#include "ddx.h" #include "ephyr.h" #include "ephyrlog.h" #include "glx_extinit.h" diff --git a/hw/kdrive/src/kdrive.c b/hw/kdrive/src/kdrive.c index 761e57dba..1a16e9b05 100644 --- a/hw/kdrive/src/kdrive.c +++ b/hw/kdrive/src/kdrive.c @@ -26,7 +26,6 @@ #include "dix/screenint_priv.h" #include "os/cmdline.h" #include "os/ddx_priv.h" - #include "os/osdep.h" #include "kdrive.h" diff --git a/hw/vfb/InitOutput.c b/hw/vfb/InitOutput.c index e096637e9..773831afd 100644 --- a/hw/vfb/InitOutput.c +++ b/hw/vfb/InitOutput.c @@ -70,7 +70,6 @@ from The Open Group. #include #include #endif /* MITSHM */ -#include "ddx.h" #include "dix.h" #include "miline.h" #include "glx_extinit.h" diff --git a/hw/xfree86/common/xf86Configure.c b/hw/xfree86/common/xf86Configure.c index af62451d0..74936a5bd 100644 --- a/hw/xfree86/common/xf86Configure.c +++ b/hw/xfree86/common/xf86Configure.c @@ -32,7 +32,6 @@ #include "os/ddx_priv.h" #include "os/osdep.h" -#include "ddx.h" #include "xf86.h" #include "xf86Config.h" #include "xf86_OSlib.h" diff --git a/hw/xnest/Args.c b/hw/xnest/Args.c index c83666c4e..8f448babb 100644 --- a/hw/xnest/Args.c +++ b/hw/xnest/Args.c @@ -25,7 +25,6 @@ is" without express or implied warranty. #include "misc.h" #include "scrnintstr.h" #include "servermd.h" -#include "ddx.h" #include "xnest-xcb.h" diff --git a/hw/xnest/Init.c b/hw/xnest/Init.c index c4f5b9e4a..ffa94b075 100644 --- a/hw/xnest/Init.c +++ b/hw/xnest/Init.c @@ -26,7 +26,6 @@ is" without express or implied warranty. #include "os/ddx_priv.h" #include "os/osdep.h" -#include "ddx.h" #include "screenint.h" #include "input.h" #include "misc.h" diff --git a/hw/xquartz/darwin.c b/hw/xquartz/darwin.c index 45e279444..8b6c3c2ee 100644 --- a/hw/xquartz/darwin.c +++ b/hw/xquartz/darwin.c @@ -46,7 +46,6 @@ #include "micmap.h" // mi colormap code #include "fb.h" // fb framebuffer code #include "globals.h" -#include "ddx.h" #include "dix.h" #include "xkbsrv.h" diff --git a/hw/xwayland/xwayland.c b/hw/xwayland/xwayland.c index 3e4501a1c..13a63165f 100644 --- a/hw/xwayland/xwayland.c +++ b/hw/xwayland/xwayland.c @@ -51,7 +51,6 @@ #include #include #include -#include "ddx.h" #include #include #include "extinit.h" diff --git a/hw/xwin/winprocarg.c b/hw/xwin/winprocarg.c index 46fc132f6..500023e15 100644 --- a/hw/xwin/winprocarg.c +++ b/hw/xwin/winprocarg.c @@ -36,6 +36,7 @@ from The Open Group. #endif #include "os/cmdline.h" +#include "os/ddx_priv.h" #include "os/osdep.h" #include "os/ddx_priv.h" @@ -47,7 +48,6 @@ from The Open Group. #include "winprefs.h" #include "winclipboard/winclipboard.h" -#include "ddx.h" /* * Function prototypes diff --git a/meson.build b/meson.build index 06288dd52..875d4af85 100644 --- a/meson.build +++ b/meson.build @@ -654,7 +654,6 @@ inc = include_directories( 'dix', 'dri3', 'include', - 'os', 'present', 'randr', 'render', diff --git a/os/ddx.h b/os/ddx.h deleted file mode 100644 index 1f90e099d..000000000 --- a/os/ddx.h +++ /dev/null @@ -1,27 +0,0 @@ -/* SPDX-License-Identifier: MIT OR X11 - * - * Copyright © 2024 Enrico Weigelt, metux IT consult - */ -#ifndef _XSERVER_OS_DDX_H -#define _XSERVER_OS_DDX_H - -#include "os.h" - -/* callbacks of the DDX, which are called by DIX or OS layer. - DDX's need to implement these in order to handle DDX specific things. -*/ - -/* called before server reset */ -void ddxBeforeReset(void); - -/* called by ProcessCommandLine, so DDX can catch cmdline args */ -int ddxProcessArgument(int argc, char *argv[], int i); - -/* print DDX specific usage message */ -void ddxUseMsg(void); - -void ddxGiveUp(enum ExitCode error); - -void ddxInputThreadInit(void); - -#endif /* _XSERVER_OS_DDX_H */ diff --git a/os/inputthread.c b/os/inputthread.c index 623648256..8313e8ab3 100644 --- a/os/inputthread.c +++ b/os/inputthread.c @@ -33,6 +33,7 @@ #include #include +#include "os/ddx_priv.h" #include "dix/input_priv.h" #include "os/ddx_priv.h" diff --git a/os/log.c b/os/log.c index afe285183..ec3fd86f1 100644 --- a/os/log.c +++ b/os/log.c @@ -96,7 +96,6 @@ OR PERFORMANCE OF THIS SOFTWARE. #include "os/osdep.h" #include "opaque.h" -#include "ddx.h" #ifdef XF86BIGFONT #include "xf86bigfontsrv.h" diff --git a/os/utils.c b/os/utils.c index 62aa679c4..bad0cc241 100644 --- a/os/utils.c +++ b/os/utils.c @@ -116,7 +116,6 @@ __stdcall unsigned long GetTickCount(void); #include "xkbsrv.h" #include "picture.h" #include "miinitext.h" -#include "ddx.h" #include "present.h" #include "dixstruct_priv.h" #include "dpmsproc.h"