os: unexport fields from opaque.h not used by modules / drivers

There're lots of field that aren't used by any modules or drivers,
thus no need to keep them exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1351>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-03-01 19:22:45 +01:00 committed by Marge Bot
parent 06b599edb6
commit 34662f15af
7 changed files with 21 additions and 20 deletions

View File

@ -55,6 +55,7 @@ SOFTWARE.
#include <strings.h>
#include "dix/colormap_priv.h"
#include "os/osdep.h"
#include "misc.h"
#include "dix.h"

View File

@ -109,6 +109,7 @@ Equipment Corporation.
#include "dix/gc_priv.h"
#include "dix/registry_priv.h"
#include "dix/screenint_priv.h"
#include "include/resource.h"
#include "os/auth.h"
#include "os/ddx_priv.h"
#include "os/osdep.h"

View File

@ -125,6 +125,7 @@ Equipment Corporation.
#include "dix/gc_priv.h"
#include "dix/registry_priv.h"
#include "os/osdep.h"
#include "misc.h"
#include "os.h"

View File

@ -50,6 +50,8 @@
#include <sys/types.h>
#include <grp.h>
#include "os/osdep.h"
#include "xf86.h"
#include "xf86Modes.h"
#include "xf86Parser.h"

View File

@ -33,27 +33,8 @@ from The Open Group.
#include "globals.h"
extern _X_EXPORT int LimitClients;
// needed by libglx and libglamor (server modules)
extern _X_EXPORT Bool enableIndirectGLX;
extern _X_EXPORT Bool PartialNetwork;
extern _X_EXPORT Bool RunFromSigStopParent;
#ifdef RLIMIT_DATA
extern _X_EXPORT int limitDataSpace;
#endif
#ifdef RLIMIT_STACK
extern _X_EXPORT int limitStackSpace;
#endif
#ifdef RLIMIT_NOFILE
extern _X_EXPORT int limitNoFile;
#endif
extern _X_EXPORT Bool defeatAccessControl;
extern _X_EXPORT Bool bgNoneRoot;
extern _X_EXPORT Bool CoreDump;
extern _X_EXPORT Bool NoListenAll;
extern _X_EXPORT Bool AllowByteSwappedClients;
#endif /* OPAQUE_H */

View File

@ -111,4 +111,6 @@ int ChangeAccessControl(ClientPtr client, int fEnabled);
void AccessUsingXdmcp(void);
extern Bool defeatAccessControl;
#endif /* _XSERVER_OS_AUTH_H */

View File

@ -61,6 +61,7 @@ SOFTWARE.
#include <stddef.h>
#include <X11/Xos.h>
#include <X11/Xmd.h>
#include <X11/Xdefs.h>
/* If EAGAIN and EWOULDBLOCK are distinct errno values, then we check errno
* for both EAGAIN and EWOULDBLOCK, because some supposedly POSIX
@ -199,4 +200,16 @@ void ListenToAllClients(void);
/* allow DDX to force using another clock */
void ForceClockId(clockid_t forced_clockid);
extern int LimitClients;
extern Bool PartialNetwork;
extern Bool RunFromSigStopParent;
extern int limitDataSpace;
extern int limitStackSpace;
extern int limitNoFile;
extern Bool CoreDump;
extern Bool NoListenAll;
extern Bool AllowByteSwappedClients;
#endif /* _OSDEP_H_ */