xserver-multidpi/hw/xfree86/parser
Dan Nicholson efa5269f23 xfree86: Use xorg.conf.d directory for multiple config files
Currently there is a single file, xorg.conf, for configuring the server.
This works fine most of the time, but it becomes a problem when packages
or system services need to adjust the configuration. Instead, allow
multiple configuration files to live in a directory. Typically this will
be /etc/X11/xorg.conf.d.

Files with a suffix of .conf will be read and added to the server
configuration after xorg.conf. The server won't fall back to using the
auto configuration unless there is no config file and there are no files
in the config directory.

Right now this uses a simpler search template than the config file
search path by not using the command line or environment variable
parameters. The matching code was refactored a bit to make this more
coherent. Any DDX wanting to read the config files will need to call
xf86initConfigFiles before opening/reading them. This is to allow
xf86openConfigFile without xf86openConfigDirFiles and vice-versa.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>
2009-12-22 23:20:45 -08:00
..
Configint.h config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
configProcs.h Export some symbols from libxf86config when installing it. 2008-12-07 14:59:25 -02:00
Device.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
DRI.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
Extensions.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
Files.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
Flags.c Don't cast double to int: use default conversions or explicitly round. 2009-10-28 18:56:42 -07:00
Input.c xfree86: remove some 'enable this later' and if 0 ifdefs 2009-12-22 21:27:54 -08:00
Layout.c xfree86: remove some 'enable this later' and if 0 ifdefs 2009-12-22 21:27:54 -08:00
Makefile.am parser: make libxf86config_internal.la not installed. 2009-08-07 13:36:52 +10:00
Module.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
Monitor.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
Pointer.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
read.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
scan.c xfree86: Use xorg.conf.d directory for multiple config files 2009-12-22 23:20:45 -08:00
Screen.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
Vendor.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
Video.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
write.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
xf86Optrec.h config: s/xf86configStrdup/strdup/ 2009-04-06 17:51:35 -04:00
xf86Parser.h xfree86: Use xorg.conf.d directory for multiple config files 2009-12-22 23:20:45 -08:00
xf86tokens.h Obsolete InputDevices keyword in xorg.conf Files section 2009-02-18 14:50:25 -08:00