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:
parent
06b599edb6
commit
34662f15af
|
@ -55,6 +55,7 @@ SOFTWARE.
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
|
|
||||||
#include "dix/colormap_priv.h"
|
#include "dix/colormap_priv.h"
|
||||||
|
#include "os/osdep.h"
|
||||||
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "dix.h"
|
#include "dix.h"
|
||||||
|
|
|
@ -109,6 +109,7 @@ Equipment Corporation.
|
||||||
#include "dix/gc_priv.h"
|
#include "dix/gc_priv.h"
|
||||||
#include "dix/registry_priv.h"
|
#include "dix/registry_priv.h"
|
||||||
#include "dix/screenint_priv.h"
|
#include "dix/screenint_priv.h"
|
||||||
|
#include "include/resource.h"
|
||||||
#include "os/auth.h"
|
#include "os/auth.h"
|
||||||
#include "os/ddx_priv.h"
|
#include "os/ddx_priv.h"
|
||||||
#include "os/osdep.h"
|
#include "os/osdep.h"
|
||||||
|
|
|
@ -125,6 +125,7 @@ Equipment Corporation.
|
||||||
|
|
||||||
#include "dix/gc_priv.h"
|
#include "dix/gc_priv.h"
|
||||||
#include "dix/registry_priv.h"
|
#include "dix/registry_priv.h"
|
||||||
|
#include "os/osdep.h"
|
||||||
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
|
|
|
@ -50,6 +50,8 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
|
|
||||||
|
#include "os/osdep.h"
|
||||||
|
|
||||||
#include "xf86.h"
|
#include "xf86.h"
|
||||||
#include "xf86Modes.h"
|
#include "xf86Modes.h"
|
||||||
#include "xf86Parser.h"
|
#include "xf86Parser.h"
|
||||||
|
|
|
@ -33,27 +33,8 @@ from The Open Group.
|
||||||
|
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
|
|
||||||
extern _X_EXPORT int LimitClients;
|
// needed by libglx and libglamor (server modules)
|
||||||
|
|
||||||
extern _X_EXPORT Bool enableIndirectGLX;
|
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 bgNoneRoot;
|
||||||
|
|
||||||
extern _X_EXPORT Bool CoreDump;
|
|
||||||
extern _X_EXPORT Bool NoListenAll;
|
|
||||||
|
|
||||||
extern _X_EXPORT Bool AllowByteSwappedClients;
|
|
||||||
|
|
||||||
#endif /* OPAQUE_H */
|
#endif /* OPAQUE_H */
|
||||||
|
|
|
@ -111,4 +111,6 @@ int ChangeAccessControl(ClientPtr client, int fEnabled);
|
||||||
|
|
||||||
void AccessUsingXdmcp(void);
|
void AccessUsingXdmcp(void);
|
||||||
|
|
||||||
|
extern Bool defeatAccessControl;
|
||||||
|
|
||||||
#endif /* _XSERVER_OS_AUTH_H */
|
#endif /* _XSERVER_OS_AUTH_H */
|
||||||
|
|
13
os/osdep.h
13
os/osdep.h
|
@ -61,6 +61,7 @@ SOFTWARE.
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <X11/Xos.h>
|
#include <X11/Xos.h>
|
||||||
#include <X11/Xmd.h>
|
#include <X11/Xmd.h>
|
||||||
|
#include <X11/Xdefs.h>
|
||||||
|
|
||||||
/* If EAGAIN and EWOULDBLOCK are distinct errno values, then we check errno
|
/* If EAGAIN and EWOULDBLOCK are distinct errno values, then we check errno
|
||||||
* for both EAGAIN and EWOULDBLOCK, because some supposedly POSIX
|
* for both EAGAIN and EWOULDBLOCK, because some supposedly POSIX
|
||||||
|
@ -199,4 +200,16 @@ void ListenToAllClients(void);
|
||||||
/* allow DDX to force using another clock */
|
/* allow DDX to force using another clock */
|
||||||
void ForceClockId(clockid_t forced_clockid);
|
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_ */
|
#endif /* _OSDEP_H_ */
|
||||||
|
|
Loading…
Reference in New Issue