Files
xserver/os/ddx_priv.h
Enrico Weigelt, metux IT consult ce75ddb0bb os: move OsVendorFatalError() and OsVendorInit() to ddx_priv.h
These are implemented by DDX, thus should be declared in ddx_priv.h

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-11-27 10:44:58 +01:00

32 lines
823 B
C

/* SPDX-License-Identifier: MIT OR X11
*
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
*/
#ifndef _XSERVER_OS_DDX_PRIV_H
#define _XSERVER_OS_DDX_PRIV_H
#include "include/os.h"
#include "os/osdep.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);
void OsVendorFatalError(const char *f, va_list args) _X_ATTRIBUTE_PRINTF(1, 0);
void OsVendorInit(void);
#endif /* _XSERVER_OS_DDX_PRIV_H */