Move XRes from extmod to built-in

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

Signed-off-by: Tomas Carnecky <tom@dbservice.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Tomas Carnecky 2012-07-10 02:03:05 +01:00 committed by Keith Packard
parent ba21fc2958
commit 7d859bd878
5 changed files with 7 additions and 10 deletions

View File

@ -52,7 +52,7 @@ endif
# XResource extension: lets clients get data about per-client resource usage
RES_SRCS = hashtable.c hashtable.h xres.c
if RES
MODULE_SRCS += $(RES_SRCS)
BUILTIN_SRCS += $(RES_SRCS)
endif
# MIT ScreenSaver extension

View File

@ -190,6 +190,8 @@ DestroyConstructResourceBytesCtx(ConstructResourceBytesCtx *ctx)
ht_destroy(ctx->visitedResources);
}
extern void ResExtensionInit(void);
static int
ProcXResQueryVersion(ClientPtr client)
{

View File

@ -77,14 +77,6 @@ static ExtensionModule extensionModules[] = {
NULL,
NULL},
#endif
#ifdef RES
{
ResExtensionInit,
XRES_NAME,
&noResExtension,
NULL,
NULL},
#endif
};
static XF86ModuleVersionInfo VersRec = {

View File

@ -104,7 +104,7 @@ extern void RecordExtensionInit(void);
extern Bool noRenderExtension;
extern void RenderExtensionInit(void);
#if defined(RES) && !defined(XorgLoader)
#if defined(RES)
#include <X11/extensions/XResproto.h>
extern Bool noResExtension;
extern void ResExtensionInit(void);

View File

@ -409,6 +409,9 @@ static ExtensionModule staticExtensions[] = {
#ifdef DPMSExtension
{DPMSExtensionInit, DPMSExtensionName, &noDPMSExtension, NULL},
#endif
#ifdef RES
{ResExtensionInit, XRES_NAME, &noResExtension, NULL},
#endif
};
/*ARGSUSED*/ void