xfree86: xf86Config: consolidate xf86configptr declarations

Instead of having several separate exern declarations in various
source files, using one central one xf86Config.h

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-05-20 17:43:01 +02:00
parent af29902c5c
commit 34529d788f
3 changed files with 3 additions and 6 deletions

View File

@ -37,12 +37,10 @@
#include "xf86Parser.h"
#include "xf86str.h"
#ifdef HAVE_PARSER_DECLS
/*
* global structure that holds the result of parsing the config file
*/
extern XF86ConfigPtr xf86configptr;
#endif
typedef enum _ConfigStatus {
CONFIG_OK = 0,

View File

@ -34,6 +34,7 @@
#include "xf86.h"
#include "xf86DDC_priv.h"
#include "xf86Config.h"
#include "xf86Crtc.h"
#include "xf86Modes.h"
#include "xf86Opt_priv.h"
@ -460,8 +461,6 @@ xf86CrtcSetOrigin(xf86CrtcPtr crtc, int x, int y)
* Output functions
*/
extern XF86ConfigPtr xf86configptr;
typedef enum {
OPTION_PREFERRED_MODE,
OPTION_ZOOM_MODES,

View File

@ -30,11 +30,11 @@
#endif
#include <libxcvt/libxcvt.h>
#include "xf86Config.h"
#include "xf86Modes.h"
#include "xf86Priv.h"
extern XF86ConfigPtr xf86configptr;
/**
* Calculates the horizontal sync rate of a mode.
*/