summaryrefslogtreecommitdiff
path: root/hw/xfree86/parser/xf86Parser.h
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2010-02-10 15:36:47 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2010-02-11 19:25:32 +1000
commit9b369f71273fb117c982e6ce16cd4462f206d365 (patch)
treecb2215696551f1896cdb0560b53be93f45b2a644 /hw/xfree86/parser/xf86Parser.h
parenta378e361a5de89f0be8b68ebc3e854f56cefe666 (diff)
xfree86: Allow multiple arguments to InputClass matches
In order to keep the number of InputClass sections manageable, allow matches to contain multiple arguments. The arguments will be separated by the '|' character. This allows a policy to apply to multiple types of devices. For example: Section "InputClass" Identifier "Inverted Mice" MatchProduct "Crazy Mouse|Silly Mouse" Option "InvertX" "yes" EndSection This applies to the MatchProduct, MatchVendor and MatchDevicePath entries. Currently there is no way to escape characters, so names or patterns cannot contain '|'. Signed-off-by: Dan Nicholson <dbn.lists@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'hw/xfree86/parser/xf86Parser.h')
-rw-r--r--hw/xfree86/parser/xf86Parser.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/xfree86/parser/xf86Parser.h b/hw/xfree86/parser/xf86Parser.h
index 5e8351fc4..b6d40a1f3 100644
--- a/hw/xfree86/parser/xf86Parser.h
+++ b/hw/xfree86/parser/xf86Parser.h
@@ -343,9 +343,9 @@ typedef struct
GenericListRec list;
char *identifier;
char *driver;
- char *match_product;
- char *match_vendor;
- char *match_device;
+ char **match_product;
+ char **match_vendor;
+ char **match_device;
xf86TriState is_keyboard;
xf86TriState is_pointer;
xf86TriState is_joystick;