os: move enum ExitCode into private header

Not used by any external drivers, so no need to keep it public.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-09-23 12:55:34 +02:00
committed by Enrico Weigelt
parent 678b025df5
commit 5cdfe6e5ab
5 changed files with 11 additions and 9 deletions

View File

@@ -5,6 +5,7 @@
#ifndef _XSERVER_XF86_PRIV_H
#define _XSERVER_XF86_PRIV_H
#include "os/osdep.h"
#include "xf86.h"
extern Bool xf86DoConfigure;

View File

@@ -215,13 +215,6 @@ typedef struct {
/* stuff for FlushCallback */
extern _X_EXPORT CallbackListPtr FlushCallback;
enum ExitCode {
EXIT_NO_ERROR = 0,
EXIT_ERR_ABORT = 1,
EXIT_ERR_CONFIGURE = 2,
EXIT_ERR_DRIVERS = 3,
};
extern _X_EXPORT int
TimeSinceLastInputEvent(void);

View File

@@ -5,7 +5,8 @@
#ifndef _XSERVER_OS_DDX_PRIV_H
#define _XSERVER_OS_DDX_PRIV_H
#include "os.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.

View File

@@ -5,7 +5,7 @@
#ifndef __XORG_OS_LOGGING_H
#define __XORG_OS_LOGGING_H
#include "include/os.h"
#include "os/osdep.h"
/**
* @brief initialize logging and open log files

View File

@@ -234,4 +234,11 @@ static inline size_t x_safe_strlen(const char *str) {
return (str ? strlen(str) : 0);
}
enum ExitCode {
EXIT_NO_ERROR = 0,
EXIT_ERR_ABORT = 1,
EXIT_ERR_CONFIGURE = 2,
EXIT_ERR_DRIVERS = 3,
};
#endif /* _OSDEP_H_ */