(submit/unexport-ddx-callbacks) os: unexport ddx callbacks

The DDX callbacks (where core/DIX calls into DDX) aren't supposed to be
called by drivers directly, so unexport them.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-02-22 17:32:26 +01:00
parent 3993de5346
commit ba7d036718
14 changed files with 40 additions and 0 deletions

View File

@ -120,6 +120,7 @@ Equipment Corporation.
#include "os/screensaver.h" #include "os/screensaver.h"
#include "windowstr.h" #include "windowstr.h"
#include "ddx.h"
#include "dixfontstr.h" #include "dixfontstr.h"
#include "gcstruct.h" #include "gcstruct.h"
#include "colormapst.h" #include "colormapst.h"

View File

@ -112,6 +112,7 @@ Equipment Corporation.
#include "colormapst.h" #include "colormapst.h"
#include "cursorstr.h" #include "cursorstr.h"
#include "servermd.h" #include "servermd.h"
#include "ddx.h"
#include "dixfont.h" #include "dixfont.h"
#include "extnsionst.h" #include "extnsionst.h"
#include "privates.h" #include "privates.h"

View File

@ -30,6 +30,7 @@
#include "os/ddx_priv.h" #include "os/ddx_priv.h"
#include "os/osdep.h" #include "os/osdep.h"
#include "ddx.h"
#include "ephyr.h" #include "ephyr.h"
#include "ephyrlog.h" #include "ephyrlog.h"
#include "glx_extinit.h" #include "glx_extinit.h"

View File

@ -69,6 +69,7 @@ from The Open Group.
#include <sys/ipc.h> #include <sys/ipc.h>
#include <sys/shm.h> #include <sys/shm.h>
#endif /* MITSHM */ #endif /* MITSHM */
#include "ddx.h"
#include "dix.h" #include "dix.h"
#include "miline.h" #include "miline.h"
#include "glx_extinit.h" #include "glx_extinit.h"

View File

@ -32,6 +32,7 @@
#include "os/ddx_priv.h" #include "os/ddx_priv.h"
#include "os/osdep.h" #include "os/osdep.h"
#include "ddx.h"
#include "xf86.h" #include "xf86.h"
#include "xf86Config.h" #include "xf86Config.h"
#include "xf86_OSlib.h" #include "xf86_OSlib.h"

View File

@ -25,6 +25,7 @@ is" without express or implied warranty.
#include "misc.h" #include "misc.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "servermd.h" #include "servermd.h"
#include "ddx.h"
#include "xnest-xcb.h" #include "xnest-xcb.h"

View File

@ -25,6 +25,7 @@ is" without express or implied warranty.
#include "os/ddx_priv.h" #include "os/ddx_priv.h"
#include "os/osdep.h" #include "os/osdep.h"
#include "ddx.h"
#include "screenint.h" #include "screenint.h"
#include "input.h" #include "input.h"
#include "misc.h" #include "misc.h"

View File

@ -46,6 +46,7 @@
#include "micmap.h" // mi colormap code #include "micmap.h" // mi colormap code
#include "fb.h" // fb framebuffer code #include "fb.h" // fb framebuffer code
#include "globals.h" #include "globals.h"
#include "ddx.h"
#include "dix.h" #include "dix.h"
#include "xkbsrv.h" #include "xkbsrv.h"

View File

@ -51,6 +51,7 @@
#include <glx_extinit.h> #include <glx_extinit.h>
#include <opaque.h> #include <opaque.h>
#include <os.h> #include <os.h>
#include "ddx.h"
#include <propertyst.h> #include <propertyst.h>
#include <version-config.h> #include <version-config.h>

View File

@ -47,6 +47,7 @@ from The Open Group.
#include "winprefs.h" #include "winprefs.h"
#include "winclipboard/winclipboard.h" #include "winclipboard/winclipboard.h"
#include "ddx.h"
/* /*
* Function prototypes * Function prototypes

View File

@ -654,6 +654,7 @@ inc = include_directories(
'dix', 'dix',
'dri3', 'dri3',
'include', 'include',
'os',
'present', 'present',
'randr', 'randr',
'render', 'render',

27
os/ddx.h Normal file
View File

@ -0,0 +1,27 @@
/* SPDX-License-Identifier: MIT OR X11
*
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
*/
#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 */

View File

@ -96,6 +96,7 @@ OR PERFORMANCE OF THIS SOFTWARE.
#include "os/osdep.h" #include "os/osdep.h"
#include "opaque.h" #include "opaque.h"
#include "ddx.h"
#ifdef XF86BIGFONT #ifdef XF86BIGFONT
#include "xf86bigfontsrv.h" #include "xf86bigfontsrv.h"

View File

@ -116,6 +116,7 @@ __stdcall unsigned long GetTickCount(void);
#include "xkbsrv.h" #include "xkbsrv.h"
#include "picture.h" #include "picture.h"
#include "miinitext.h" #include "miinitext.h"
#include "ddx.h"
#include "present.h" #include "present.h"
#include "dixstruct_priv.h" #include "dixstruct_priv.h"
#include "dpmsproc.h" #include "dpmsproc.h"