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 /hw/xfree86/parser/read.c | |
parent | d690556d496c7331bd112903a0c9e6553c7d3342 (diff) |
Add "Extensions" section support to configuration parser
Diffstat (limited to 'hw/xfree86/parser/read.c')
-rw-r--r-- | hw/xfree86/parser/read.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/xfree86/parser/read.c b/hw/xfree86/parser/read.c index 2a5afeb27..2946dc8b1 100644 --- a/hw/xfree86/parser/read.c +++ b/hw/xfree86/parser/read.c @@ -191,6 +191,12 @@ xf86readConfigFile (void) val.str = NULL; HANDLE_RETURN (conf_dri, xf86parseDRISection ()); } + else if (xf86nameCompare (val.str, "extensions") == 0) + { + xf86conffree(val.str); + val.str = NULL; + HANDLE_RETURN (conf_extensions, xf86parseExtensionsSection ()); + } else { Error (INVALID_SECTION_MSG, xf86tokenString ()); @@ -304,6 +310,7 @@ xf86freeConfig (XF86ConfigPtr p) xf86freeInputList (p->conf_input_lst); xf86freeVendorList (p->conf_vendor_lst); xf86freeDRI (p->conf_dri); + xf86freeExtensions (p->conf_extensions); TestFree(p->conf_comment); xf86conffree (p); |