diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2012-05-21 14:05:01 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-05-21 14:05:01 +1000 |
commit | 3621ef8a2b02da5ef303b80e26ec46b4a89cb9da (patch) | |
tree | 97294a263d0d70016b1c52dc48edc32d0bebc2f2 /src | |
parent | 1770c8a7e82099753c4eb743868cde8c4228d531 (diff) |
DeviceOn and friends return a status code, not a bool
No functional changes, just making things more obvious.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/synaptics.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/synaptics.c b/src/synaptics.c index 8b78b9a..e16718a 100644 --- a/src/synaptics.c +++ b/src/synaptics.c @@ -131,10 +131,10 @@ static int HandleState(InputInfoPtr, struct SynapticsHwState *, CARD32 now, Bool from_timer); static int ControlProc(InputInfoPtr, xDeviceCtl *); static int SwitchMode(ClientPtr, DeviceIntPtr, int); -static Bool DeviceInit(DeviceIntPtr); -static Bool DeviceOn(DeviceIntPtr); -static Bool DeviceOff(DeviceIntPtr); -static Bool DeviceClose(DeviceIntPtr); +static int DeviceInit(DeviceIntPtr); +static int DeviceOn(DeviceIntPtr); +static int DeviceOff(DeviceIntPtr); +static int DeviceClose(DeviceIntPtr); static Bool QueryHardware(InputInfoPtr); static void ReadDevDimensions(InputInfoPtr); static void ScaleCoordinates(SynapticsPrivate * priv, @@ -882,7 +882,7 @@ SynapticsCtrl(DeviceIntPtr device, PtrCtrl * ctrl) { } -static Bool +static int DeviceControl(DeviceIntPtr dev, int mode) { Bool RetValue; @@ -907,7 +907,7 @@ DeviceControl(DeviceIntPtr dev, int mode) return RetValue; } -static Bool +static int DeviceOn(DeviceIntPtr dev) { InputInfoPtr pInfo = dev->public.devicePrivate; @@ -981,7 +981,7 @@ SynapticsReset(SynapticsPrivate * priv) memset(priv->open_slots, 0, priv->num_slots * sizeof(int)); } -static Bool +static int DeviceOff(DeviceIntPtr dev) { InputInfoPtr pInfo = dev->public.devicePrivate; @@ -1009,7 +1009,7 @@ DeviceOff(DeviceIntPtr dev) return rc; } -static Bool +static int DeviceClose(DeviceIntPtr dev) { Bool RetValue; @@ -1128,7 +1128,7 @@ DeviceInitTouch(DeviceIntPtr dev, Atom *axes_labels) } } -static Bool +static int DeviceInit(DeviceIntPtr dev) { InputInfoPtr pInfo = dev->public.devicePrivate; |