.gitignore | 72 ++++++++++++++++++--- ChangeLog | 186 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Makefile.am | 10 +- configure.ac | 53 ++++++++------- debian/changelog | 9 ++ debian/control | 4 - man/Makefile.am | 25 ------- src/xf86PM.c | 165 +++++++++++------------------------------------- src/xf86PM.h | 7 -- 9 files changed, 338 insertions(+), 193 deletions(-)
New commits: commit a7bf68025d4c53c115bafd0d21e8d7b2de01fa49 Author: Cyril Brulebois <[email protected]> Date: Tue Jun 28 12:18:39 2011 +0200 Upload to unstable. diff --git a/debian/changelog b/debian/changelog index 0c00e1c..f030827 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,11 +1,11 @@ -xserver-xorg-input-penmount (1:1.5.0-1) UNRELEASED; urgency=low +xserver-xorg-input-penmount (1:1.5.0-1) unstable; urgency=low * New upstream release: - Support Xserver 1.10 (Closes: #625063). * Bump xserver-xorg-dev build-dep accordingly. * Bump Standards-Version to 3.9.2 (no changes). - -- Cyril Brulebois <[email protected]> Tue, 28 Jun 2011 12:14:47 +0200 + -- Cyril Brulebois <[email protected]> Tue, 28 Jun 2011 12:18:34 +0200 xserver-xorg-input-penmount (1:1.4.1-4) unstable; urgency=low commit 38bc066579fce03cf3f85c9bf8a9fd81ce6a5234 Author: Cyril Brulebois <[email protected]> Date: Tue Jun 28 12:16:17 2011 +0200 Bump Standards-Version to 3.9.2 (no changes). diff --git a/debian/changelog b/debian/changelog index 6122339..0c00e1c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,7 @@ xserver-xorg-input-penmount (1:1.5.0-1) UNRELEASED; urgency=low * New upstream release: - Support Xserver 1.10 (Closes: #625063). * Bump xserver-xorg-dev build-dep accordingly. + * Bump Standards-Version to 3.9.2 (no changes). -- Cyril Brulebois <[email protected]> Tue, 28 Jun 2011 12:14:47 +0200 diff --git a/debian/control b/debian/control index ff39018..ca67c98 100644 --- a/debian/control +++ b/debian/control @@ -13,7 +13,7 @@ Build-Depends: x11proto-randr-dev, x11proto-input-dev, xutils-dev -Standards-Version: 3.9.1 +Standards-Version: 3.9.2 Vcs-Git: git://git.debian.org/git/pkg-xorg/driver/xserver-xorg-input-penmount Vcs-Browser: http://git.debian.org/?p=pkg-xorg/driver/xserver-xorg-input-penmount.git commit 2172c75d1ada316b48be22c4e282b77275115981 Author: Cyril Brulebois <[email protected]> Date: Tue Jun 28 12:16:02 2011 +0200 Bump xserver-xorg-dev build-dep accordingly. diff --git a/debian/changelog b/debian/changelog index c9bf615..6122339 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ xserver-xorg-input-penmount (1:1.5.0-1) UNRELEASED; urgency=low * New upstream release: - Support Xserver 1.10 (Closes: #625063). + * Bump xserver-xorg-dev build-dep accordingly. -- Cyril Brulebois <[email protected]> Tue, 28 Jun 2011 12:14:47 +0200 diff --git a/debian/control b/debian/control index d7ed6a4..ff39018 100644 --- a/debian/control +++ b/debian/control @@ -8,7 +8,7 @@ Build-Depends: dh-autoreconf, quilt, pkg-config, - xserver-xorg-dev (>= 2:1.9.4), + xserver-xorg-dev (>= 2:1.10), x11proto-core-dev, x11proto-randr-dev, x11proto-input-dev, commit f927a250ad21c72732961f380fd862e820c9ff20 Author: Cyril Brulebois <[email protected]> Date: Tue Jun 28 12:15:40 2011 +0200 Bump changelogs. diff --git a/ChangeLog b/ChangeLog index a5040ca..01edc4b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,189 @@ +commit 30bf5a6bb20b8ad703f305bcde0ade2a99328b6c +Author: Peter Hutterer <[email protected]> +Date: Tue Jun 28 10:38:27 2011 +1000 + + penmount 1.5.0 + + Signed-off-by: Peter Hutterer <[email protected]> + +commit f0158bd0eb8efe2e051bb00d98d17b6071224062 +Author: Peter Hutterer <[email protected]> +Date: Tue Jun 28 10:37:53 2011 +1000 + + Require server 1.10 instead of manual ABI checks + + Signed-off-by: Peter Hutterer <[email protected]> + +commit 6658e9ad22923e8bb90ff84c079e870a8e416976 +Author: Peter Hutterer <[email protected]> +Date: Thu Dec 2 14:34:06 2010 +1000 + + Support (and require) input ABI 12. + + Signed-off-by: Peter Hutterer <[email protected]> + Reviewed-by: Trevor Woerner <[email protected]> + +commit 55f9e93bb67bda172de9ba71c465d2fbd0a80410 +Author: Peter Hutterer <[email protected]> +Date: Thu Dec 2 14:33:11 2010 +1000 + + Move default_options up + + no functional changes, prep work for ABI 12 + + Signed-off-by: Peter Hutterer <[email protected]> + Reviewed-by: Trevor Woerner <[email protected]> + +commit 79c7b3641c9b42ff13c0472707d20133707aa96f +Author: Peter Hutterer <[email protected]> +Date: Thu Dec 2 14:30:08 2010 +1000 + + Add TS_Raw and TS_Scaled defines + + The use of these is driver-internal, they used to be in the server but not + since ABI 12. + + Signed-off-by: Peter Hutterer <[email protected]> + Reviewed-by: Trevor Woerner <[email protected]> + +commit 4ac7e6e92ae7ae935b1a79aaa63a0343bb6ed08d +Author: Peter Hutterer <[email protected]> +Date: Thu Dec 2 14:29:23 2010 +1000 + + Drop driver-specific motion history size handling. + + Signed-off-by: Peter Hutterer <[email protected]> + Reviewed-by: Trevor Woerner <[email protected]> + +commit ad6785f44be7d5bc6ba27ea3e05a688d9b672ddd +Author: Peter Hutterer <[email protected]> +Date: Thu Dec 2 14:23:40 2010 +1000 + + Drop write-only flags POINTER_CAPABLE and SEND_DRAG_EVENTS + + Signed-off-by: Peter Hutterer <[email protected]> + Reviewed-by: Trevor Woerner <[email protected]> + +commit 0fbd6613c9eb7fbf1e820982551380652e040233 +Author: Peter Hutterer <[email protected]> +Date: Thu Dec 2 14:23:07 2010 +1000 + + Drop close_proc, conversion_proc. + + Both aren't called by the server. + + Signed-off-by: Peter Hutterer <[email protected]> + Reviewed-by: Trevor Woerner <[email protected]> + +commit 84fc05ccc0a0477d9e11eb3486d1a64735ae7050 +Author: Peter Hutterer <[email protected]> +Date: Thu Dec 2 14:20:05 2010 +1000 + + Fix compiler warning, unused variable "map". + + xf86PM.c: In function 'DeviceControl': + xf86PM.c:530:16: warning: unused variable 'map' + + Signed-off-by: Peter Hutterer <[email protected]> + Reviewed-by: Trevor Woerner <[email protected]> + +commit f2bd17021c5efb9118b813a6586da423aa5d2f4d +Author: Peter Hutterer <[email protected]> +Date: Thu Dec 2 14:19:20 2010 +1000 + + Drop libc wrappers for free, malloc + + Signed-off-by: Peter Hutterer <[email protected]> + Reviewed-by: Trevor Woerner <[email protected]> + +commit 22cd19a9e91fcd722cc30a3b8d21725512169219 +Author: Peter Hutterer <[email protected]> +Date: Thu Dec 2 14:17:38 2010 +1000 + + unifdef XFree86LOADER + + Signed-off-by: Peter Hutterer <[email protected]> + Reviewed-by: Trevor Woerner <[email protected]> + +commit f3c472b4b5596685c1c094a51876dcc06be3a968 +Author: Peter Hutterer <[email protected]> +Date: Thu Dec 2 14:17:24 2010 +1000 + + Require server 1.9, drop earlier ABI support + + Signed-off-by: Peter Hutterer <[email protected]> + Reviewed-by: Trevor Woerner <[email protected]> + +commit 8d4b4b7a827d9dd48d598c39ba5d3229dc45d3d4 +Author: Peter Hutterer <[email protected]> +Date: Thu Dec 2 14:22:16 2010 +1000 + + Purge CVS tags + + Signed-off-by: Peter Hutterer <[email protected]> + +commit 68a9e64e780f2ac01a6e6700e271dcaebe7f7e86 +Author: Peter Hutterer <[email protected]> +Date: Thu Dec 2 14:15:56 2010 +1000 + + Bump to 1.4.99 + + Signed-off-by: Peter Hutterer <[email protected]> + +commit af7e7c0aa603b67b12e4046bcda9bc58026cd82b +Author: Alan Coopersmith <[email protected]> +Date: Wed Oct 27 22:21:20 2010 -0700 + + Remove refcnt field from InputDriverRec. + + Wasn't used in the server and is now removed. + + Fixes compiler error: + "xf86PM.c", line 59: too many struct/union initializers + + Signed-off-by: Alan Coopersmith <[email protected]> + +commit 63d1539957f1618af8ebca520f61ca712070d950 +Author: Gaetan Nadon <[email protected]> +Date: Mon Oct 18 19:39:08 2010 -0400 + + config: upgrade to util-macros 1.8 for additional man page support + + Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS + The value of MAN_SUBST is the same for all X.Org packages. + + Use AC_PROG_SED now supplied by XORG_DEFAULT_OPTIONS + Use the appropriate platform version of sed + + Signed-off-by: Gaetan Nadon <[email protected]> + +commit 6dab63a36c5b89fa2de1128538b88e2bbce9a34c +Author: Gaetan Nadon <[email protected]> +Date: Mon Apr 12 13:36:10 2010 -0400 + + config: disable inadvertently re-enabled static library creation + + AC_DISABLE_STATIC must be places before AC_PROG_LIBTOOL, + requirement which is not documented in libtool. + + Signed-off-by: Gaetan Nadon <[email protected]> + +commit a1d3a8a54d96b23adf1dd819726e80be1bc0eebb +Author: Gaetan Nadon <[email protected]> +Date: Sat Mar 6 09:03:20 2010 -0500 + + config: remove unused sdkdir variable + + Signed-off-by: Gaetan Nadon <[email protected]> + +commit 5902c15cac1ee0c163256e132f85b8720aed845e +Author: Gaetan Nadon <[email protected]> +Date: Fri Mar 5 11:57:47 2010 -0500 + + Configuration upgrades, .gitignore, INSTALL file + + Signed-off-by: Gaetan Nadon <[email protected]> + commit 3bc3d1245676f6022fd3db48eb3e7f3b66c7561f Author: Julien Cristau <[email protected]> Date: Wed Mar 3 23:41:39 2010 +0100 diff --git a/debian/changelog b/debian/changelog index 1266b28..c9bf615 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +xserver-xorg-input-penmount (1:1.5.0-1) UNRELEASED; urgency=low + + * New upstream release: + - Support Xserver 1.10 (Closes: #625063). + + -- Cyril Brulebois <[email protected]> Tue, 28 Jun 2011 12:14:47 +0200 + xserver-xorg-input-penmount (1:1.4.1-4) unstable; urgency=low * Switch to dh: commit 30bf5a6bb20b8ad703f305bcde0ade2a99328b6c Author: Peter Hutterer <[email protected]> Date: Tue Jun 28 10:38:27 2011 +1000 penmount 1.5.0 Signed-off-by: Peter Hutterer <[email protected]> diff --git a/configure.ac b/configure.ac index c0b3685..1d0b819 100644 --- a/configure.ac +++ b/configure.ac @@ -23,7 +23,7 @@ # Initialize Autoconf AC_PREREQ(2.60) AC_INIT([xf86-input-penmount], - [1.4.99], + [1.5.0], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xf86-input-penmount]) AC_CONFIG_SRCDIR([Makefile.am]) commit f0158bd0eb8efe2e051bb00d98d17b6071224062 Author: Peter Hutterer <[email protected]> Date: Tue Jun 28 10:37:53 2011 +1000 Require server 1.10 instead of manual ABI checks Signed-off-by: Peter Hutterer <[email protected]> diff --git a/configure.ac b/configure.ac index 8ad433b..c0b3685 100644 --- a/configure.ac +++ b/configure.ac @@ -64,7 +64,7 @@ XORG_DRIVER_CHECK_EXT(RANDR, randrproto) XORG_DRIVER_CHECK_EXT(XINPUT, inputproto) # Checks for pkg-config packages -PKG_CHECK_MODULES(XORG, [xorg-server >= 1.9.99] xproto $REQUIRED_MODULES) +PKG_CHECK_MODULES(XORG, [xorg-server >= 1.10] xproto $REQUIRED_MODULES) # Define an Automake variable for the driver name DRIVER_NAME=penmount diff --git a/src/xf86PM.c b/src/xf86PM.c index 8d7539e..edcf6f8 100644 --- a/src/xf86PM.c +++ b/src/xf86PM.c @@ -57,10 +57,6 @@ #define TS_Raw 60 #define TS_Scaled 61 -#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 12 -#error "Need server with input ABI 12" -#endif - /* * Be sure to set vmin appropriately for your device's protocol. You want to * read a full packet before returning commit 6658e9ad22923e8bb90ff84c079e870a8e416976 Author: Peter Hutterer <[email protected]> Date: Thu Dec 2 14:34:06 2010 +1000 Support (and require) input ABI 12. Signed-off-by: Peter Hutterer <[email protected]> Reviewed-by: Trevor Woerner <[email protected]> diff --git a/configure.ac b/configure.ac index 94869c2..8ad433b 100644 --- a/configure.ac +++ b/configure.ac @@ -64,7 +64,7 @@ XORG_DRIVER_CHECK_EXT(RANDR, randrproto) XORG_DRIVER_CHECK_EXT(XINPUT, inputproto) # Checks for pkg-config packages -PKG_CHECK_MODULES(XORG, [xorg-server >= 1.9.0] xproto $REQUIRED_MODULES) +PKG_CHECK_MODULES(XORG, [xorg-server >= 1.9.99] xproto $REQUIRED_MODULES) # Define an Automake variable for the driver name DRIVER_NAME=penmount diff --git a/src/xf86PM.c b/src/xf86PM.c index 2034200..8d7539e 100644 --- a/src/xf86PM.c +++ b/src/xf86PM.c @@ -57,11 +57,15 @@ #define TS_Raw 60 #define TS_Scaled 61 +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 12 +#error "Need server with input ABI 12" +#endif + /* * Be sure to set vmin appropriately for your device's protocol. You want to * read a full packet before returning */ -static const char *default_options[] = +static char *default_options[] = { /* "Device", "/dev/ttyS1",*/ "BaudRate", "19200", @@ -81,7 +85,8 @@ _X_EXPORT InputDriverRec PENMOUNT = { PenMountPreInit, /*PenMountUnInit*/NULL, NULL, -}; + default_options +}; static XF86ModuleVersionInfo VersionRec = { @@ -183,12 +188,14 @@ ProcessDeviceInit(PenMountPrivatePtr priv, DeviceIntPtr dev, InputInfoPtr pInfo) min_x, max_x, 9500, 0 /* min_res */ , - 9500 /* max_res */ ); + 9500 /* max_res */, + Absolute); InitValuatorAxisStruct (dev, 1, axis_labels[1], min_y, max_y, 10500, 0 /* min_res */ , - 10500 /* max_res */ ); + 10500 /* max_res */, + Absolute); } if (InitProximityClassDeviceStruct (dev) == FALSE) @@ -411,21 +418,15 @@ DMC9512_ProcessDeviceOn(PenMountPrivatePtr priv, DeviceIntPtr dev, InputInfoPtr return Success; } -static InputInfoPtr -PenMountPreInit(InputDriverPtr drv, IDevPtr dev, int flags) -{ - InputInfoPtr pInfo; +static int +PenMountPreInit(InputDriverPtr drv, InputInfoPtr pInfo, int flags) +{ PenMountPrivatePtr priv = calloc (1, sizeof (PenMountPrivateRec)); char *s; if (!priv) - return NULL; + return BadAlloc; - if (!(pInfo = xf86AllocateInput(drv, 0))) { - free(priv); - return NULL; - } - priv->min_x = 0; priv->max_x = 1024; priv->min_y = 768; @@ -446,12 +447,7 @@ PenMountPreInit(InputDriverPtr drv, IDevPtr dev, int flags) pInfo->read_input = ReadInput; pInfo->control_proc = ControlProc; pInfo->switch_mode = SwitchMode; - pInfo->dev = NULL; pInfo->private = priv; - pInfo->private_flags = 0; - pInfo->conf_idev = dev; - - xf86CollectInputOptions(pInfo, default_options, NULL); xf86OptionListReport( pInfo->options ); @@ -502,10 +498,8 @@ PenMountPreInit(InputDriverPtr drv, IDevPtr dev, int flags) /* this results in an xstrdup that must be freed later */ pInfo->name = xf86SetStrOption( pInfo->options, "DeviceName", "PenMount"); - xf86ProcessCommonOptions(pInfo, pInfo->options); - pInfo->flags |= XI86_CONFIGURED; - return (pInfo); + return Success; SetupProc_fail: if ((pInfo) && (pInfo->fd)) @@ -517,7 +511,7 @@ PenMountPreInit(InputDriverPtr drv, IDevPtr dev, int flags) XisbFree (priv->buffer); if (priv) free (priv); - return (pInfo); + return BadValue; } static Bool diff --git a/src/xf86PM.h b/src/xf86PM.h index ee1bf47..5183f91 100644 --- a/src/xf86PM.h +++ b/src/xf86PM.h @@ -91,8 +91,8 @@ static Bool PenMountGetPacket (PenMountPrivatePtr priv); static Bool DMC9000_PenMountGetPacket (PenMountPrivatePtr priv); static Bool PenMountSendPacket (PenMountPrivatePtr priv, unsigned char *buf, int len ); -static InputInfoPtr -PenMountPreInit(InputDriverPtr drv, IDevPtr dev, int flags); +static int +PenMountPreInit(InputDriverPtr drv, InputInfoPtr pInfo, int flags); static void PenMountPtrCtrl(DeviceIntPtr device, PtrCtrl *ctrl); commit 55f9e93bb67bda172de9ba71c465d2fbd0a80410 Author: Peter Hutterer <[email protected]> Date: Thu Dec 2 14:33:11 2010 +1000 Move default_options up no functional changes, prep work for ABI 12 Signed-off-by: Peter Hutterer <[email protected]> Reviewed-by: Trevor Woerner <[email protected]> diff --git a/src/xf86PM.c b/src/xf86PM.c index bb1424c..2034200 100644 --- a/src/xf86PM.c +++ b/src/xf86PM.c @@ -57,6 +57,23 @@ #define TS_Raw 60 #define TS_Scaled 61 +/* + * Be sure to set vmin appropriately for your device's protocol. You want to + * read a full packet before returning + */ +static const char *default_options[] = +{ + /* "Device", "/dev/ttyS1",*/ + "BaudRate", "19200", + "StopBits", "1", + "DataBits", "8", + "Parity", "None", + "Vmin", "3", + "Vtime", "1", + "FlowControl", "None", + NULL, +}; + _X_EXPORT InputDriverRec PENMOUNT = { 1, "penmount", @@ -97,24 +114,6 @@ _X_EXPORT XF86ModuleData penmountModuleData = { NULL }; -/* - * Be sure to set vmin appropriately for your device's protocol. You want to - * read a full packet before returning - */ -static const char *default_options[] = -{ - /* "Device", "/dev/ttyS1",*/ - "BaudRate", "19200", - "StopBits", "1", - "DataBits", "8", - "Parity", "None", - "Vmin", "3", - "Vtime", "1", - "FlowControl", "None", - NULL, -}; - - /***************************************************************************** * Function Definitions ****************************************************************************/ commit 79c7b3641c9b42ff13c0472707d20133707aa96f Author: Peter Hutterer <[email protected]> Date: Thu Dec 2 14:30:08 2010 +1000 Add TS_Raw and TS_Scaled defines The use of these is driver-internal, they used to be in the server but not since ABI 12. Signed-off-by: Peter Hutterer <[email protected]> Reviewed-by: Trevor Woerner <[email protected]> diff --git a/src/xf86PM.c b/src/xf86PM.c index b5b2e70..bb1424c 100644 --- a/src/xf86PM.c +++ b/src/xf86PM.c @@ -54,6 +54,9 @@ #include <string.h> #include "xf86PM.h" +#define TS_Raw 60 +#define TS_Scaled 61 + _X_EXPORT InputDriverRec PENMOUNT = { 1, "penmount", commit 4ac7e6e92ae7ae935b1a79aaa63a0343bb6ed08d Author: Peter Hutterer <[email protected]> Date: Thu Dec 2 14:29:23 2010 +1000 Drop driver-specific motion history size handling. Signed-off-by: Peter Hutterer <[email protected]> Reviewed-by: Trevor Woerner <[email protected]> diff --git a/src/xf86PM.c b/src/xf86PM.c index 7b8c3f0..b5b2e70 100644 --- a/src/xf86PM.c +++ b/src/xf86PM.c @@ -148,7 +148,7 @@ ProcessDeviceInit(PenMountPrivatePtr priv, DeviceIntPtr dev, InputInfoPtr pInfo) * Axes min and max values are reported in raw coordinates. */ if (InitValuatorClassDeviceStruct (dev, 2, axis_labels, - pInfo->history_size, Absolute) == FALSE) + GetMotionHistorySize(), Absolute) == FALSE) { ErrorF ("Unable to allocate PenMount ValuatorClassDeviceStruct\n"); return !Success; commit ad6785f44be7d5bc6ba27ea3e05a688d9b672ddd Author: Peter Hutterer <[email protected]> Date: Thu Dec 2 14:23:40 2010 +1000 Drop write-only flags POINTER_CAPABLE and SEND_DRAG_EVENTS Signed-off-by: Peter Hutterer <[email protected]> Reviewed-by: Trevor Woerner <[email protected]> diff --git a/src/xf86PM.c b/src/xf86PM.c index 673618a..7b8c3f0 100644 --- a/src/xf86PM.c +++ b/src/xf86PM.c @@ -447,7 +447,6 @@ PenMountPreInit(InputDriverPtr drv, IDevPtr dev, int flags) pInfo->dev = NULL; pInfo->private = priv; pInfo->private_flags = 0; - pInfo->flags = XI86_POINTER_CAPABLE | XI86_SEND_DRAG_EVENTS; pInfo->conf_idev = dev; xf86CollectInputOptions(pInfo, default_options, NULL); commit 0fbd6613c9eb7fbf1e820982551380652e040233 Author: Peter Hutterer <[email protected]> Date: Thu Dec 2 14:23:07 2010 +1000 Drop close_proc, conversion_proc. Both aren't called by the server. Signed-off-by: Peter Hutterer <[email protected]> Reviewed-by: Trevor Woerner <[email protected]> diff --git a/src/xf86PM.c b/src/xf86PM.c index a45e67d..673618a 100644 --- a/src/xf86PM.c +++ b/src/xf86PM.c @@ -443,9 +443,7 @@ PenMountPreInit(InputDriverPtr drv, IDevPtr dev, int flags) pInfo->device_control = DeviceControl; pInfo->read_input = ReadInput; pInfo->control_proc = ControlProc; - pInfo->close_proc = CloseProc; pInfo->switch_mode = SwitchMode; - pInfo->conversion_proc = ConvertProc; pInfo->dev = NULL; pInfo->private = priv; pInfo->private_flags = 0; @@ -871,15 +869,6 @@ ControlProc (InputInfoPtr pInfo, xDeviceCtl * control) } /* - * the CloseProc should not need to be tailored to your device - */ -static void -CloseProc (InputInfoPtr pInfo) -{ - -} - -/* * The SwitchMode function may need to be tailored for your device */ static int @@ -899,41 +888,6 @@ SwitchMode (ClientPtr client, DeviceIntPtr dev, int mode) } /* - * The ConvertProc function may need to be tailored for your device. - * This function converts the device's valuator outputs to x and y coordinates - * to simulate mouse events. - */ -static Bool -ConvertProc (InputInfoPtr pInfo, - int first, - int num, - int v0, - int v1, - int v2, - int v3, - int v4, - int v5, - int *x, - int *y) -{ - PenMountPrivatePtr priv = (PenMountPrivatePtr) (pInfo->private); - - if (priv->reporting_mode == TS_Raw) - { - *x = xf86ScaleAxis (v0, 0, priv->screen_width, priv->min_x, - priv->max_x); - *y = xf86ScaleAxis (v1, 0, priv->screen_height, priv->min_y, - priv->max_y); - } - else - { - *x = v0; - *y = v1; - } - return (TRUE); -} - -/* * the QueryHardware fuction should be tailored to your device to * verify the device is attached and functional and perform any * needed initialization. diff --git a/src/xf86PM.h b/src/xf86PM.h index a62903f..ee1bf47 100644 --- a/src/xf86PM.h +++ b/src/xf86PM.h @@ -85,9 +85,7 @@ static Bool DeviceControl (DeviceIntPtr, int); static void ReadInput (InputInfoPtr); static void DMC9000_ReadInput (InputInfoPtr); static int ControlProc (InputInfoPtr, xDeviceCtl *); -static void CloseProc (InputInfoPtr); static int SwitchMode (ClientPtr, DeviceIntPtr, int); -static Bool ConvertProc (InputInfoPtr, int, int, int, int, int, int, int, int, int *, int *); static Bool QueryHardware (PenMountPrivatePtr); static Bool PenMountGetPacket (PenMountPrivatePtr priv); static Bool DMC9000_PenMountGetPacket (PenMountPrivatePtr priv); commit 84fc05ccc0a0477d9e11eb3486d1a64735ae7050 Author: Peter Hutterer <[email protected]> Date: Thu Dec 2 14:20:05 2010 +1000 Fix compiler warning, unused variable "map". xf86PM.c: In function 'DeviceControl': xf86PM.c:530:16: warning: unused variable 'map' Signed-off-by: Peter Hutterer <[email protected]> Reviewed-by: Trevor Woerner <[email protected]> diff --git a/src/xf86PM.c b/src/xf86PM.c index 328ad28..a45e67d 100644 --- a/src/xf86PM.c +++ b/src/xf86PM.c @@ -526,8 +526,6 @@ DeviceControl (DeviceIntPtr dev, int mode) { InputInfoPtr pInfo = dev->public.devicePrivate; PenMountPrivatePtr priv = (PenMountPrivatePtr) (pInfo->private); - unsigned char map[] = - {0, 1}; switch (mode) { commit f2bd17021c5efb9118b813a6586da423aa5d2f4d Author: Peter Hutterer <[email protected]> Date: Thu Dec 2 14:19:20 2010 +1000 Drop libc wrappers for free, malloc Signed-off-by: Peter Hutterer <[email protected]> Reviewed-by: Trevor Woerner <[email protected]> diff --git a/src/xf86PM.c b/src/xf86PM.c index 1ba947f..328ad28 100644 --- a/src/xf86PM.c +++ b/src/xf86PM.c @@ -413,14 +413,14 @@ static InputInfoPtr PenMountPreInit(InputDriverPtr drv, IDevPtr dev, int flags) { InputInfoPtr pInfo; - PenMountPrivatePtr priv = xcalloc (1, sizeof (PenMountPrivateRec)); + PenMountPrivatePtr priv = calloc (1, sizeof (PenMountPrivateRec)); char *s; if (!priv) return NULL; if (!(pInfo = xf86AllocateInput(drv, 0))) { - xfree(priv); + free(priv); return NULL; } @@ -512,12 +512,12 @@ PenMountPreInit(InputDriverPtr drv, IDevPtr dev, int flags) if ((pInfo) && (pInfo->fd)) xf86CloseSerial (pInfo->fd); if ((pInfo) && (pInfo->name)) - xfree (pInfo->name); + free (pInfo->name); if ((priv) && (priv->buffer)) XisbFree (priv->buffer); if (priv) - xfree (priv); + free (priv); return (pInfo); } commit 22cd19a9e91fcd722cc30a3b8d21725512169219 Author: Peter Hutterer <[email protected]> Date: Thu Dec 2 14:17:38 2010 +1000 unifdef XFree86LOADER Signed-off-by: Peter Hutterer <[email protected]> Reviewed-by: Trevor Woerner <[email protected]> diff --git a/src/xf86PM.c b/src/xf86PM.c index 7b42d62..1ba947f 100644 --- a/src/xf86PM.c +++ b/src/xf86PM.c @@ -63,10 +63,6 @@ _X_EXPORT InputDriverRec PENMOUNT = { NULL, }; - - -#ifdef XFree86LOADER - static XF86ModuleVersionInfo VersionRec = { "penmount", @@ -98,9 +94,6 @@ _X_EXPORT XF86ModuleData penmountModuleData = { NULL }; -#endif /* XFree86LOADER */ - - /* * Be sure to set vmin appropriately for your device's protocol. You want to * read a full packet before returning commit f3c472b4b5596685c1c094a51876dcc06be3a968 Author: Peter Hutterer <[email protected]> Date: Thu Dec 2 14:17:24 2010 +1000 Require server 1.9, drop earlier ABI support Signed-off-by: Peter Hutterer <[email protected]> Reviewed-by: Trevor Woerner <[email protected]> diff --git a/configure.ac b/configure.ac index 3eb54cc..94869c2 100644 --- a/configure.ac +++ b/configure.ac @@ -64,7 +64,7 @@ XORG_DRIVER_CHECK_EXT(RANDR, randrproto) XORG_DRIVER_CHECK_EXT(XINPUT, inputproto) # Checks for pkg-config packages -PKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901] xproto $REQUIRED_MODULES) +PKG_CHECK_MODULES(XORG, [xorg-server >= 1.9.0] xproto $REQUIRED_MODULES) # Define an Automake variable for the driver name DRIVER_NAME=penmount diff --git a/src/xf86PM.c b/src/xf86PM.c index 5a3f8a8..7b42d62 100644 --- a/src/xf86PM.c +++ b/src/xf86PM.c @@ -143,9 +143,7 @@ ProcessDeviceInit(PenMountPrivatePtr priv, DeviceIntPtr dev, InputInfoPtr pInfo) * Device reports button press for 1 button. */ if (InitButtonClassDeviceStruct (dev, 1, -#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7 &btn_label, -#endif map) == FALSE) { ErrorF ("Unable to allocate PenMount ButtonClassDeviceStruct\n"); @@ -156,13 +154,7 @@ ProcessDeviceInit(PenMountPrivatePtr priv, DeviceIntPtr dev, InputInfoPtr pInfo) * Device reports motions on 2 axes in absolute coordinates. * Axes min and max values are reported in raw coordinates. */ - if (InitValuatorClassDeviceStruct (dev, 2, -#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7 - axis_labels, -#endif -#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3 - xf86GetMotionEvents, -#endif + if (InitValuatorClassDeviceStruct (dev, 2, axis_labels, pInfo->history_size, Absolute) == FALSE) { ErrorF ("Unable to allocate PenMount ValuatorClassDeviceStruct\n"); @@ -192,18 +184,12 @@ ProcessDeviceInit(PenMountPrivatePtr priv, DeviceIntPtr dev, InputInfoPtr pInfo) min_y = 0; } - InitValuatorAxisStruct (dev, 0, -#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7 - axis_labels[0], -#endif + InitValuatorAxisStruct (dev, 0, axis_labels[0], min_x, max_x, 9500, 0 /* min_res */ , 9500 /* max_res */ ); - InitValuatorAxisStruct (dev, 1, -#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7 - axis_labels[1], -#endif + InitValuatorAxisStruct (dev, 1, axis_labels[1], min_y, max_y, 10500, 0 /* min_res */ , @@ -917,13 +903,6 @@ SwitchMode (ClientPtr client, DeviceIntPtr dev, int mode) priv->reporting_mode = mode; return (Success); } -#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 0 - else if ((mode == SendCoreEvents) || (mode == DontSendCoreEvents)) - { - xf86XInputSetSendCoreEvents (pInfo, (mode == SendCoreEvents)); - return (Success); - } -#endif else return (!Success); } commit 8d4b4b7a827d9dd48d598c39ba5d3229dc45d3d4 Author: Peter Hutterer <[email protected]> Date: Thu Dec 2 14:22:16 2010 +1000 Purge CVS tags Signed-off-by: Peter Hutterer <[email protected]> diff --git a/src/xf86PM.c b/src/xf86PM.c index fb3d36d..5a3f8a8 100644 --- a/src/xf86PM.c +++ b/src/xf86PM.c @@ -37,7 +37,6 @@ * in this Software without prior written authorization from Metro Link. * */ -/* $XFree86: xc/programs/Xserver/hw/xfree86/input/penmount/xf86PM.c,v 1.2 2000/08/11 19:10:46 dawes Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/src/xf86PM.h b/src/xf86PM.h index ff1d158..a62903f 100644 --- a/src/xf86PM.h +++ b/src/xf86PM.h @@ -27,7 +27,6 @@ * in this Software without prior written authorization from Metro Link. * */ -/* $XFree86: xc/programs/Xserver/hw/xfree86/input/penmount/xf86PM.h,v 1.2 1999/08/22 05:57:37 dawes Exp $ */ #ifndef _PENMOUNT_H_ #define _PENMOUNT_H_ commit 68a9e64e780f2ac01a6e6700e271dcaebe7f7e86 Author: Peter Hutterer <[email protected]> Date: Thu Dec 2 14:15:56 2010 +1000 Bump to 1.4.99 Signed-off-by: Peter Hutterer <[email protected]> diff --git a/configure.ac b/configure.ac index e3f7ab0..3eb54cc 100644 --- a/configure.ac +++ b/configure.ac @@ -23,7 +23,7 @@ # Initialize Autoconf AC_PREREQ(2.60) AC_INIT([xf86-input-penmount], -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

