diff options
author | Kevin E Martin <kem@kem.org> | 2004-07-31 09:14:06 +0000 |
---|---|---|
committer | Kevin E Martin <kem@kem.org> | 2004-07-31 09:14:06 +0000 |
commit | 383b6b59864098b03d991628ff5933d997793ea1 (patch) | |
tree | 8c09ab41d2a62542369fb50bc2ac440429d7e54d /mi | |
parent | d690556d496c7331bd112903a0c9e6553c7d3342 (diff) |
Add "Extensions" section support to configuration parser
Diffstat (limited to 'mi')
-rw-r--r-- | mi/miinitext.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/mi/miinitext.c b/mi/miinitext.c index ec4ae1aa4..be4856fec 100644 --- a/mi/miinitext.c +++ b/mi/miinitext.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/mi/miinitext.c,v 1.7 2004/07/31 04:23:21 kem Exp $ */ +/* $XdotOrg: xc/programs/Xserver/mi/miinitext.c,v 1.8 2004/07/31 08:24:14 anholt Exp $ */ /* $XFree86: xc/programs/Xserver/mi/miinitext.c,v 3.67 2003/01/12 02:44:27 dawes Exp $ */ /*********************************************************** @@ -101,6 +101,9 @@ extern Bool noRenderExtension; #ifdef XEVIE extern Bool noXevieExtension; #endif +#ifdef COMPOSITE +extern Bool noCompositeExtension; +#endif #ifndef XFree86LOADER #define INITARGS void @@ -309,6 +312,9 @@ static ExtensionToggle ExtensionToggleList[] = #ifdef XEVIE { "XEVIE", &noXevieExtension }, #endif +#ifdef COMPOSITE + { "COMPOSITE", &noCompositeExtension }, +#endif { NULL, NULL } }; @@ -323,13 +329,18 @@ Bool EnableDisableExtension(char *name, Bool enable) } } + return FALSE; +} + +void EnableDisableExtensionError(char *name, Bool enable) +{ + ExtensionToggle *ext = &ExtensionToggleList[0]; + ErrorF("Extension \"%s\" is not recognized\n", name); ErrorF("Only the following extensions can be run-time %s:\n", enable ? "enabled" : "disabled"); for (ext = &ExtensionToggleList[0]; ext->name != NULL; ext++) ErrorF(" %s\n", ext->name); - - return FALSE; } #ifndef XFree86LOADER @@ -482,7 +493,7 @@ InitExtensions(argc, argv) DamageExtensionInit(); #endif #ifdef COMPOSITE - CompositeExtensionInit (); + if (!noCompositeExtension) CompositeExtensionInit(); #endif } @@ -614,7 +625,7 @@ static ExtensionModule staticExtensions[] = { { DamageExtensionInit, "DAMAGE", NULL, NULL }, #endif #ifdef COMPOSITE - { CompositeExtensionInit, "COMPOSITE", NULL, NULL }, + { CompositeExtensionInit, "COMPOSITE", &noCompositeExtension, NULL }, #endif #ifdef XEVIE { XevieExtensionInit, "XEVIE", &noXevieExtension, NULL }, |