[PATCH 14/42] Move DPMS from extmod to built-in

Daniel Stone daniel at fooishbar.org
Fri Dec 2 03:27:22 PST 2011


From: Tomas Carnecky <tom at dbservice.com>

Always build DPMS support into the core server, rather than letting it
languish in extmod.

Signed-off-by: Tomas Carnecky <tom at dbservice.com>
Reviewed-by: Daniel Stone <daniel at fooishbar.org>
Reviewed-by: Jamey Sharp <jamey at minilop.net>
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 Xext/Makefile.am                    |    2 +-
 Xext/dpms.c                         |    2 ++
 hw/xfree86/dixmods/extmod/modinit.c |    9 ---------
 mi/miinitext.c                      |    3 +++
 4 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/Xext/Makefile.am b/Xext/Makefile.am
index a443a64..adea06e 100644
--- a/Xext/Makefile.am
+++ b/Xext/Makefile.am
@@ -103,7 +103,7 @@ endif
 # DPMS extension
 DPMS_SRCS = dpms.c dpmsproc.h
 if DPMSExtension
-MODULE_SRCS += $(DPMS_SRCS)
+BUILTIN_SRCS += $(DPMS_SRCS)
 endif
 
 # Now take all of the above, mix well, bake for 10 minutes and get libXext*.la
diff --git a/Xext/dpms.c b/Xext/dpms.c
index c8ba904..e0bef36 100644
--- a/Xext/dpms.c
+++ b/Xext/dpms.c
@@ -41,6 +41,8 @@ Equipment Corporation.
 #include "dpmsproc.h"
 #include "extinit.h"
 
+extern void DPMSExtensionInit(void);
+
 static int
 ProcDPMSGetVersion(ClientPtr client)
 {
diff --git a/hw/xfree86/dixmods/extmod/modinit.c b/hw/xfree86/dixmods/extmod/modinit.c
index 59dd785..69a70dd 100644
--- a/hw/xfree86/dixmods/extmod/modinit.c
+++ b/hw/xfree86/dixmods/extmod/modinit.c
@@ -66,15 +66,6 @@ static ExtensionModule extensionModules[] = {
 	NULL
     },
 #endif
-#ifdef DPMSExtension
-    {
-	DPMSExtensionInit,
-	DPMSExtensionName,
-	&noDPMSExtension,
-	NULL,
-	NULL
-    },
-#endif
 #ifdef XV
     {
 	XvExtensionInit,
diff --git a/mi/miinitext.c b/mi/miinitext.c
index 8fb2c11..9b0fa60 100644
--- a/mi/miinitext.c
+++ b/mi/miinitext.c
@@ -360,6 +360,9 @@ static ExtensionModule staticExtensions[] = {
 #ifdef XRECORD
     { RecordExtensionInit, "RECORD", &noTestExtensions, NULL },
 #endif
+#ifdef DPMSExtension
+    { DPMSExtensionInit, DPMSExtensionName, &noDPMSExtension, NULL },
+#endif
     { NULL, NULL, NULL, NULL, NULL }
 };
     
-- 
1.7.7.3



More information about the xorg-devel mailing list