xserver/hw/xfree86/parser
Peter Hutterer c6d9bc092c Add tag matching to input attributes.
Tags may be a list of comma-separated strings that match against a MatchTag
InputClass section. If any of the tags specified for a device match against
the MatchTag of the section, this match is evaluated true and passed on to
the next match condition.

Tags are specified as "input.tags" (hal) or "ID_INPUT.tags" (udev), the
value of the tags is case-sensitive and require an exact match (not a
substring match).

i.e. "quirk" will not match "QUIRK", "need_quirk" or "quirk_needed".

Example configuration:
udev:
    ENV{ID_INPUT.tags}="foo,bar"

hal:
    <merge key="input.tags" type="string">foo,bar</merge>

xorg.conf:
    Section "InputClass"
            Identifier "foobar quirks"
            MatchTag "foo|foobar"
            Option "Foobar" "on"
    EndSection

Where the xorg.conf section matches against any device with the tag "foo"
or tag "foobar" set.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Tested-by: Dan Nicholson <dbn.lists@gmail.com>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
2010-02-11 19:25:49 +10:00
..
Configint.h xfree86: Support non-Option boolean entries in configuration 2009-12-22 23:24:02 -08:00
DRI.c config: Remove useless xf86conf{{m,c,re}alloc},free} macros 2009-04-06 17:56:49 -04:00
Device.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
InputClass.c Add tag matching to input attributes. 2010-02-11 19:25:49 +10:00
Layout.c xfree86: Add Option AutoServerLayout for input devices. 2009-12-22 23:22:09 -08:00
Makefile.am xfree86: Introduce InputClass configuration 2009-12-23 05:54:40 -08: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
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
configProcs.h xfree86: Introduce InputClass configuration 2009-12-23 05:54:40 -08:00
read.c xfree86: Introduce InputClass configuration 2009-12-23 05:54:40 -08:00
scan.c xfree86: Handle config files ending without newline 2010-02-11 19:25:14 +10:00
write.c xfree86: Introduce InputClass configuration 2009-12-23 05:54:40 -08:00
xf86Optrec.h config: s/xf86configStrdup/strdup/ 2009-04-06 17:51:35 -04:00
xf86Parser.h Add tag matching to input attributes. 2010-02-11 19:25:49 +10:00
xf86tokens.h Add tag matching to input attributes. 2010-02-11 19:25:49 +10:00