summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2012-07-10 02:03:26 +0100
committerKeith Packard <keithp@keithp.com>2012-07-10 00:31:02 -0700
commit5f5bbbe543f65c48ecbb5cce80116a86ca3fbe86 (patch)
tree5e72a1963420fd84ad83164507bbbc010aa0fce3
parent147967f67d4976a87ed07fe11b59b174907f5d43 (diff)
Unify miinitext.c
Rather than having a non-Xorg and an Xorg-specific path which basically just duplicated each other for no reason, we could ... just have one. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--hw/xfree86/dixmods/Makefile.am2
-rw-r--r--mi/miinitext.c122
2 files changed, 2 insertions, 122 deletions
diff --git a/hw/xfree86/dixmods/Makefile.am b/hw/xfree86/dixmods/Makefile.am
index 1ad122a95..f161db60a 100644
--- a/hw/xfree86/dixmods/Makefile.am
+++ b/hw/xfree86/dixmods/Makefile.am
@@ -45,6 +45,6 @@ endif
libshadow_la_SOURCES = shmodule.c
libdixmods_la_SOURCES = $(top_srcdir)/mi/miinitext.c
-libdixmods_la_CFLAGS = -DXFree86LOADER $(AM_CFLAGS)
+libdixmods_la_CFLAGS = $(AM_CFLAGS)
libxorgxkb_la_SOURCES = xkbVT.c xkbPrivate.c xkbKillSrv.c
diff --git a/mi/miinitext.c b/mi/miinitext.c
index d76d79676..a1438316b 100644
--- a/mi/miinitext.c
+++ b/mi/miinitext.c
@@ -77,6 +77,7 @@ SOFTWARE.
#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
+#include "xf86Extensions.h"
#endif
#ifdef HAVE_DMX_CONFIG_H
@@ -111,11 +112,6 @@ SOFTWARE.
#include "micmap.h"
#include "globals.h"
-#ifdef XFree86LOADER
-#include "loaderProcs.h"
-#include "xf86Extensions.h"
-#endif
-
/* The following is only a small first step towards run-time
* configurable extensions.
*/
@@ -237,120 +233,6 @@ EnableDisableExtensionError(const char *name, Bool enable)
}
}
-#ifndef XFree86LOADER
-
- /*ARGSUSED*/ void
-InitExtensions(int argc, char *argv[])
-{
- if (!noGEExtension)
- GEExtensionInit();
-
- ShapeExtensionInit();
-
-#ifdef MITSHM
- if (!noMITShmExtension)
- ShmExtensionInit();
-#endif
-
- XInputExtensionInit();
-
-#ifdef XTEST
- if (!noTestExtensions)
- XTestExtensionInit();
-#endif
-
- BigReqExtensionInit();
- SyncExtensionInit();
- XkbExtensionInit();
- XCMiscExtensionInit();
-
-#ifdef XCSECURITY
- if (!noSecurityExtension)
- SecurityExtensionInit();
-#endif
-
-#ifdef PANORAMIX
- if (!noPanoramiXExtension)
- PanoramiXExtensionInit();
-#endif
-
-#ifdef XFIXES
- /* must be before Render to layer DisplayCursor correctly */
- if (!noXFixesExtension)
- XFixesExtensionInit();
-#endif
-
-#ifdef XF86BIGFONT
- if (!noXFree86BigfontExtension)
- XFree86BigfontExtensionInit();
-#endif
-
- if (!noRenderExtension)
- RenderExtensionInit();
-
-#ifdef RANDR
- if (!noRRExtension)
- RRExtensionInit();
-#endif
-
-#ifdef COMPOSITE
- if (!noCompositeExtension)
- CompositeExtensionInit();
-#endif
-
-#ifdef DAMAGE
- if (!noDamageExtension)
- DamageExtensionInit();
-#endif
-
-#ifdef XSELINUX
- if (!noSELinuxExtension)
- SELinuxExtensionInit();
-#endif
-
-#if defined(SCREENSAVER)
- if (!noScreenSaverExtension)
- ScreenSaverExtensionInit();
-#endif
-
-#if !defined(NO_HW_ONLY_EXTS) && defined(DPMSExtension)
- if (!noDPMSExtension)
- DPMSExtensionInit();
-#endif
-
-#ifdef XV
- if (!noXvExtension) {
- XvExtensionInit();
- XvMCExtensionInit();
- }
-#endif
-
-#ifdef RES
- if (!noResExtension)
- ResExtensionInit();
-#endif
-
-#ifdef XRECORD
- if (!noTestExtensions)
- RecordExtensionInit();
-#endif
-
-#ifdef DBE
- if (!noDbeExtension)
- DbeExtensionInit();
-#endif
-
-#ifdef DMXEXT
- DMXExtensionInit(); /* server-specific extension, cannot be disabled */
-#endif
-
-#ifdef GLXEXT
- if (!noGlxExtension)
- GlxExtensionInit();
-#endif
-}
-
-#else /* XFree86LOADER */
/* List of built-in (statically linked) extensions */
static ExtensionModule staticExtensions[] = {
{GEExtensionInit, "Generic Event Extension", &noGEExtension, NULL},
@@ -502,5 +384,3 @@ LoadExtension(ExtensionModule * e, Bool builtin)
if (e->setupFunc != NULL)
e->setupFunc();
}
-
-#endif /* XFree86LOADER */