From 645679c1523eee7028f3244cee57936b93326a2a Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Thu, 10 Jun 2010 06:11:10 -0700 Subject: 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 Reviewed-by: Peter Hutterer Signed-off-by: Peter Hutterer --- include/input.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/input.h b/include/input.h index c68a28441..5969693e1 100644 --- a/include/input.h +++ b/include/input.h @@ -215,6 +215,7 @@ typedef struct _InputAttributes { char *product; char *vendor; char *device; + char *pnp_id; char **tags; /* null-terminated */ uint32_t flags; } InputAttributes; -- cgit v1.2.3