Ensure all *ModuleData symbols are marked _X_EXPORT. Start removing

XFree86LOADER ifdefs, non-loadable hasn't been supported for a while
    now. Remove completely gratuitious REMOVE_LOADER_CHECK_MODULE_INFO
    ifdefs surrounding a call to a function added in XFree86 4.1 (!).
    Miscellaneous static markings.
This commit is contained in:
Adam Jackson 2006-06-05 03:00:24 +00:00
commit 52fc7c8dc7
40 changed files with 106 additions and 201 deletions

View file

@ -1,4 +1,3 @@
/* $XFree86: xc/programs/Xserver/GL/mesa/src/GLcoremodule.c,v 1.5 2000/02/23 04:46:55 martin Exp $ */
/**************************************************************************
Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
@ -54,7 +53,7 @@ static XF86ModuleVersionInfo VersRec =
{0,0,0,0}
};
XF86ModuleData GLcoreModuleData = { &VersRec, GLcoreSetup, NULL };
_X_EXPORT XF86ModuleData GLcoreModuleData = { &VersRec, GLcoreSetup, NULL };
static pointer
GLcoreSetup(pointer module, pointer opts, int *errmaj, int *errmin)

View file

@ -1,4 +1,3 @@
/* $XFree86: xc/programs/Xserver/afb/afbmodule.c,v 1.1 1999/06/13 13:47:38 dawes Exp $ */
/*
* Copyright (C) 1998 The XFree86 Project, Inc. All Rights Reserved.
*
@ -29,8 +28,6 @@
#include <xorg-config.h>
#endif
#ifdef XFree86LOADER
#include "xf86Module.h"
#include "afb.h"
@ -50,7 +47,7 @@ static XF86ModuleVersionInfo VersRec =
{0,0,0,0} /* signature, to be patched into the file by a tool */
};
XF86ModuleData afbModuleData = { &VersRec, afbSetup, NULL };
_X_EXPORT XF86ModuleData afbModuleData = { &VersRec, afbSetup, NULL };
static pointer
afbSetup(pointer module, pointer opts, int *errmaj, int *errmin)
@ -59,5 +56,3 @@ afbSetup(pointer module, pointer opts, int *errmaj, int *errmin)
return LoadSubModule(module, "mfb", NULL, NULL, NULL, NULL,
errmaj, errmin);
}
#endif

View file

@ -1,4 +1,3 @@
/* $XFree86: xc/programs/Xserver/cfb32/cfbmodule.c,v 1.8 1999/01/26 05:53:49 dawes Exp $ */
/*
* Copyright (C) 1998 The XFree86 Project, Inc. All Rights Reserved.
*
@ -31,8 +30,6 @@
#define PSZ 32
#ifdef XFree86LOADER
#include "xf86Module.h"
#include "cfb.h"
@ -52,7 +49,7 @@ static XF86ModuleVersionInfo VersRec =
{0,0,0,0} /* signature, to be patched into the file by a tool */
};
XF86ModuleData cfb32ModuleData = { &VersRec, cfb32Setup, NULL };
_X_EXPORT XF86ModuleData cfb32ModuleData = { &VersRec, cfb32Setup, NULL };
static pointer
cfb32Setup(pointer module, pointer opts, int *errmaj, int *errmin)
@ -61,5 +58,3 @@ cfb32Setup(pointer module, pointer opts, int *errmaj, int *errmin)
return LoadSubModule(module, "cfb", NULL, NULL, NULL, NULL,
errmaj, errmin);
}
#endif

View file

@ -1,4 +1,3 @@
/* $XFree86: xc/programs/Xserver/cfb/cfbmodule.c,v 1.8 1999/01/26 05:53:48 dawes Exp $ */
/*
* Copyright (C) 1998 The XFree86 Project, Inc. All Rights Reserved.
*
@ -31,8 +30,6 @@
#define PSZ 8
#ifdef XFree86LOADER
#include "xf86Module.h"
#include "cfb.h"
@ -52,7 +49,7 @@ static XF86ModuleVersionInfo VersRec =
{0,0,0,0} /* signature, to be patched into the file by a tool */
};
XF86ModuleData cfbModuleData = { &VersRec, cfbSetup, NULL };
_X_EXPORT XF86ModuleData cfbModuleData = { &VersRec, cfbSetup, NULL };
static pointer
cfbSetup(pointer module, pointer opts, int *errmaj, int *errmin)
@ -61,5 +58,3 @@ cfbSetup(pointer module, pointer opts, int *errmaj, int *errmin)
return LoadSubModule(module, "mfb", NULL, NULL, NULL, NULL,
errmaj, errmin);
}
#endif

View file

@ -1,5 +1,3 @@
/* $XFree86: xc/programs/Xserver/dbe/dbemodule.c,v 1.6 1999/01/26 05:53:50 dawes Exp $ */
#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
#endif
@ -11,7 +9,7 @@ static MODULESETUPPROTO(dbeSetup);
extern void DbeExtensionInit(INITARGS);
ExtensionModule dbeExt = {
static ExtensionModule dbeExt = {
DbeExtensionInit,
"DOUBLE-BUFFER",
&noDbeExtension,
@ -36,7 +34,7 @@ static XF86ModuleVersionInfo VersRec =
/*
* Data for the loader
*/
XF86ModuleData dbeModuleData = { &VersRec, dbeSetup, NULL };
_X_EXPORT XF86ModuleData dbeModuleData = { &VersRec, dbeSetup, NULL };
static pointer
dbeSetup(pointer module, pointer opts, int *errmaj, int *errmin)

View file

@ -1,7 +1,4 @@
/* $XFree86: xc/programs/Xserver/Xext/extmod/modinit.c,v 1.16 2002/03/06 21:12:33 mvojkovi Exp $ */
/*
*
* Copyright (c) 1997 Matthieu Herrb
*
* Permission to use, copy, modify, distribute, and sell this software and its
@ -27,8 +24,6 @@
#include <xorg-config.h>
#endif
#ifdef XFree86LOADER
#include "xf86Module.h"
#include "xf86Opt.h"
@ -42,7 +37,7 @@ static MODULESETUPPROTO(extmodSetup);
/*
* Array describing extensions to be initialized
*/
ExtensionModule extensionModules[] = {
static ExtensionModule extensionModules[] = {
#ifdef SHAPE
{
ShapeExtensionInit,
@ -229,7 +224,7 @@ static XF86ModuleVersionInfo VersRec =
/*
* Data for the loader
*/
XF86ModuleData extmodModuleData = { &VersRec, extmodSetup, NULL };
_X_EXPORT XF86ModuleData extmodModuleData = { &VersRec, extmodSetup, NULL };
static pointer
extmodSetup(pointer module, pointer opts, int *errmaj, int *errmin)
@ -259,5 +254,3 @@ extmodSetup(pointer module, pointer opts, int *errmaj, int *errmin)
/* Need a non-NULL return */
return (pointer)1;
}
#endif /* XFree86LOADER */

View file

@ -23,14 +23,11 @@
* dealings in this Software without prior written authorization from the
* XFree86 Project.
*/
/* $XFree86: xc/programs/Xserver/fb/fbmodule.c,v 1.3 2000/02/14 19:20:29 dawes Exp $ */
#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
#endif
#ifdef XFree86LOADER
#include "xf86Module.h"
#include "fb.h"
@ -48,6 +45,4 @@ static XF86ModuleVersionInfo VersRec =
{0,0,0,0} /* signature, to be patched into the file by a tool */
};
XF86ModuleData fbModuleData = { &VersRec, NULL, NULL };
#endif
_X_EXPORT XF86ModuleData fbModuleData = { &VersRec, NULL, NULL };

View file

@ -23,17 +23,16 @@
* dealings in this Software without prior written authorization from the
* XFree86 Project.
*/
/* $XFree86: xc/lib/font/FreeType/module/ftmodule.c,v 1.18 2003/11/02 04:30:57 dawes Exp $ */
#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
#endif
#include "misc.h"
#include <X11/fonts/fontmod.h>
#include "xf86Module.h"
#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
#endif
static MODULESETUPPROTO(freetypeSetup);
/*
@ -55,11 +54,11 @@ static XF86ModuleVersionInfo VersRec =
{0,0,0,0} /* signature, to be patched into the file by a tool */
};
XF86ModuleData freetypeModuleData = { &VersRec, freetypeSetup, NULL };
_X_EXPORT XF86ModuleData freetypeModuleData = { &VersRec, freetypeSetup, NULL };
extern void FreeTypeRegisterFontFileFunctions(void);
FontModule freetypeModule = {
static FontModule freetypeModule = {
FreeTypeRegisterFontFileFunctions,
"FreeType",
NULL

View file

@ -24,7 +24,6 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
**************************************************************************/
/* $XFree86: xc/programs/Xserver/GL/glxmodule.c,v 1.11 2001/06/15 21:22:38 dawes Exp $ */
/*
* Authors:
@ -59,7 +58,7 @@ static MODULESETUPPROTO(glxSetup);
static const char *initdeps[] = { "DOUBLE-BUFFER", NULL };
ExtensionModule GLXExt =
static ExtensionModule GLXExt =
{
GlxExtensionInit,
"GLX",
@ -82,7 +81,7 @@ static XF86ModuleVersionInfo VersRec =
{0,0,0,0}
};
XF86ModuleData glxModuleData = { &VersRec, glxSetup, NULL };
_X_EXPORT XF86ModuleData glxModuleData = { &VersRec, glxSetup, NULL };
/* We do a little proxy dance here, so we can avoid loading GLcore
* unless we really need to.*/

View file

@ -1,4 +1,3 @@
/* $XFree86: xc/programs/Xserver/mfb/mfbmodule.c,v 1.7 1999/01/26 05:54:21 dawes Exp $ */
/*
* Copyright (C) 1998 The XFree86 Project, Inc. All Rights Reserved.
*
@ -29,10 +28,8 @@
#include <xorg-config.h>
#endif
#ifdef XFree86LOADER
#include "xf86Module.h"
static XF86ModuleVersionInfo VersRec =
{
"mfb",
@ -47,6 +44,4 @@ static XF86ModuleVersionInfo VersRec =
{0,0,0,0} /* signature, to be patched into the file by a tool */
};
XF86ModuleData mfbModuleData = { &VersRec, NULL, NULL };
#endif
_X_EXPORT XF86ModuleData mfbModuleData = { &VersRec, NULL, NULL };

View file

@ -1,5 +1,3 @@
/* $XFree86: xc/programs/Xserver/record/recordmod.c,v 1.5 1999/01/26 05:54:21 dawes Exp $ */
#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
#endif
@ -12,7 +10,7 @@ static MODULESETUPPROTO(recordSetup);
extern void RecordExtensionInit(INITARGS);
ExtensionModule recordExt = {
static ExtensionModule recordExt = {
RecordExtensionInit,
"RECORD",
&noTestExtensions,
@ -33,7 +31,7 @@ static XF86ModuleVersionInfo VersRec = {
{0,0,0,0}
};
XF86ModuleData recordModuleData = { &VersRec, recordSetup, NULL };
_X_EXPORT XF86ModuleData recordModuleData = { &VersRec, recordSetup, NULL };
static pointer
recordSetup(pointer module, pointer opts, int *errmaj, int *errmin)

View file

@ -1,6 +1,4 @@
/*
* $XFree86$
*
* Copyright © 2000 Keith Packard
*
* Permission to use, copy, modify, distribute, and sell this software and its
@ -26,8 +24,6 @@
#include <xorg-config.h>
#endif
#ifdef XFree86LOADER
#include "xf86Module.h"
#include <X11/X.h>
#include "scrnintstr.h"
@ -55,6 +51,4 @@ static XF86ModuleVersionInfo VersRec =
{0,0,0,0} /* signature, to be patched into the file by a tool */
};
XF86ModuleData shadowModuleData = { &VersRec, NULL, NULL };
#endif
_X_EXPORT XF86ModuleData shadowModuleData = { &VersRec, NULL, NULL };

View file

@ -23,17 +23,16 @@
* dealings in this Software without prior written authorization from the
* XFree86 Project.
*/
/* $XFree86: xc/lib/font/Type1/module/type1mod.c,v 1.10 2002/12/09 17:29:59 dawes Exp $ */
#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
#endif
#include "misc.h"
#include <X11/fonts/fontmod.h>
#include "xf86Module.h"
#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
#endif
static MODULESETUPPROTO(type1Setup);
/*
@ -55,7 +54,7 @@ static XF86ModuleVersionInfo VersRec =
{0,0,0,0} /* signature, to be patched into the file by a tool */
};
XF86ModuleData type1ModuleData = { &VersRec, type1Setup, NULL };
_X_EXPORT XF86ModuleData type1ModuleData = { &VersRec, type1Setup, NULL };
extern void Type1RegisterFontFileFunctions(void);
#ifdef BUILDCID

View file

@ -1,6 +1,4 @@
/* $XFree86$ */
/* This is the xf86 module code for the DEC_XTRAP extension.
*/
/* This is the xf86 module code for the DEC_XTRAP extension. */
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
@ -12,11 +10,9 @@
extern void DEC_XTRAPInit(INITARGS);
#ifdef XFree86LOADER
static MODULESETUPPROTO(xtrapSetup);
ExtensionModule xtrapExt =
static ExtensionModule xtrapExt =
{
DEC_XTRAPInit,
XTrapExtName,
@ -39,7 +35,7 @@ static XF86ModuleVersionInfo xtrapVersRec =
{0,0,0,0}
};
XF86ModuleData xtrapModuleData = { &xtrapVersRec, xtrapSetup, NULL };
_X_EXPORT XF86ModuleData xtrapModuleData = { &xtrapVersRec, xtrapSetup, NULL };
static pointer
xtrapSetup(pointer module, pointer opts, int *errmaj, int *errmin) {
@ -47,5 +43,3 @@ xtrapSetup(pointer module, pointer opts, int *errmaj, int *errmin) {
/* Need a non-NULL return value to indicate success */
return (pointer)1;
}
#endif /* XFree86LOADER */