diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-04-05 13:27:33 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-04-05 16:32:17 +1000 |
commit | da6cbaf3c8b0bb9f5d993ec0291c5919b52ebdee (patch) | |
tree | ae6a7c13479c3011f23b8db08b0583b310472df7 /src/xf86Wacom.h | |
parent | 1da14469d2cdfe68ddbe4d451a7e757ad2a4705b (diff) | |
download | xf86-input-wacom-da6cbaf3c8b0bb9f5d993ec0291c5919b52ebdee.tar.gz |
Rename hotplugged to is_primary in wcmParseOption.
The parameter is true for the primary device only (i.e. the one that
_triggers_ the hotplug). It is false for any driver-hotplugged device
and false for xorg.conf devices. So "hotplugged" is a rather misleading
name. Rename to is_primary instead.
Document this and while we're at it, change the function to use Bool instead
of int.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Ping Cheng <pinglinux@gmail.com>
Diffstat (limited to 'src/xf86Wacom.h')
-rw-r--r-- | src/xf86Wacom.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xf86Wacom.h b/src/xf86Wacom.h index e5149b3..5351be2 100644 --- a/src/xf86Wacom.h +++ b/src/xf86Wacom.h @@ -140,7 +140,7 @@ extern int wcmNeedAutoHotplug(InputInfoPtr pInfo, const char **type); extern void wcmHotplugOthers(InputInfoPtr pInfo, const char *basename); /* setup */ -extern int wcmParseOptions(InputInfoPtr pInfo, int hotplugged); +extern Bool wcmParseOptions(InputInfoPtr pInfo, Bool is_primary); extern void wcmInitialCoordinates(InputInfoPtr pInfo, int axes); extern void wcmInitialScreens(InputInfoPtr pInfo); extern void wcmInitialScreens(InputInfoPtr pInfo); |