mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-22 01:20:26 +00:00
xfree86: Match devices based on PnP ID
Serial input devices lack properties such as product or vendor name. This makes matching InputClass sections difficult. Add a MatchPnPID entry to test against the PnP ID of the device. The entry supports a shell pattern match on platforms that support fnmatch(3). For example: MatchPnPID "WACf*" A match type for non-path pattern matching, match_pattern, has been added. The difference between this and match_path_pattern is the FNM_PATHNAME flag in fnmatch(3). 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>
This commit is contained in:
parent
d1b4beecbc
commit
645679c152
10 changed files with 68 additions and 1 deletions
|
|
@ -1095,6 +1095,12 @@ string. This entry is only supported on platforms providing the
|
|||
system call. Multiple operating systems can be matched by separating arguments
|
||||
with a '|' character.
|
||||
.TP 7
|
||||
.BI "MatchPnPID \*q" matchpnp \*q
|
||||
The device's Plug and Play (PnP) ID can be checked against the
|
||||
.RI \*q matchpnp \*q
|
||||
shell wildcard pattern. Multiple IDs can be matched by separating arguments
|
||||
with a '|' character.
|
||||
.TP 7
|
||||
.BI "MatchTag \*q" matchtag \*q
|
||||
This entry can be used to check if tags assigned by the config backend
|
||||
matches the
|
||||
|
|
|
|||
Loading…
Reference in a new issue