xorg/acecad
12 years agoDon't free anything in PreInit, provide an UnInit instead.
Peter Hutterer [Tue, 19 Jul 2011 04:13:33 +0000 (14:13 +1000)] 
Don't free anything in PreInit, provide an UnInit instead.

Also fixes:
- leaking priv->buffer
- fd closure bug

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
12 years agoDont call xf86DeleteInput on PreInit failure.
Peter Hutterer [Mon, 18 Jul 2011 23:29:28 +0000 (09:29 +1000)] 
Dont call xf86DeleteInput on PreInit failure.

The server calls this for us once PreInit returns with an error,
calling it during PreInit means the server continues to use
already free'd memory.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
12 years agoAlways set the type name.
Peter Hutterer [Fri, 8 Jul 2011 02:24:16 +0000 (12:24 +1000)] 
Always set the type name.

The server assigns "UNKNOWN", override it with something more specific.

Introduced in f85c4b580c074f7054eac98753d1f4e91f08305e.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
12 years agoAssign local->private after allocating.
Peter Hutterer [Mon, 27 Jun 2011 03:13:54 +0000 (13:13 +1000)] 
Assign local->private after allocating.

It is detrimental to the user experience when the driver tries to derefernce
null pointers.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
12 years agoRemove pointless checks on is_core_pointer.
Cyril Brulebois [Fri, 3 Jun 2011 13:59:16 +0000 (15:59 +0200)] 
Remove pointless checks on is_core_pointer.

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Cyril Brulebois <kibi@debian.org>
12 years agoRemove checks on the ABI now that 12 or higher is required.
Cyril Brulebois [Fri, 3 Jun 2011 13:59:15 +0000 (15:59 +0200)] 
Remove checks on the ABI now that 12 or higher is required.

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Cyril Brulebois <kibi@debian.org>
12 years agoDrop support for pre-input ABI 12 servers.
Cyril Brulebois [Fri, 3 Jun 2011 13:59:15 +0000 (15:59 +0200)] 
Drop support for pre-input ABI 12 servers.

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Cyril Brulebois <kibi@debian.org>
12 years agoFix “initialization from incompatible pointer type” for default_options.
Cyril Brulebois [Fri, 3 Jun 2011 13:59:14 +0000 (15:59 +0200)] 
Fix “initialization from incompatible pointer type” for default_options.

InputDriverRec's last field is a char**, not a const char**, fix this
warning accordingly:
|   CC     acecad.lo
| acecad.c:132:1: warning: initialization from incompatible pointer type [enabled by default]
| acecad.c:132:1: warning: (near initialization for 'ACECAD.default_options') [enabled by default]

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Cyril Brulebois <kibi@debian.org>
12 years agoSilence gcc: report_{x, y} are getting initialized.
Cyril Brulebois [Fri, 3 Jun 2011 13:59:14 +0000 (15:59 +0200)] 
Silence gcc: report_{x, y} are getting initialized.

Get us rid of:
|   CC     acecad.lo
| acecad.c: In function 'USBReadInput':
| acecad.c:1052:43: warning: 'report_y' may be used uninitialized in this function [-Wuninitialized]
| acecad.c:1052:43: warning: 'report_x' may be used uninitialized in this function [-Wuninitialized]

Both code paths (with XORG_BOTCHED_INPUT or not) will lead report_x and
report_y to be set, but make sure the compiler stops guessing.

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Cyril Brulebois <kibi@debian.org>
12 years agoAvoid “'ReverseConvertProc' defined but not used” warning.
Cyril Brulebois [Fri, 3 Jun 2011 13:59:14 +0000 (15:59 +0200)] 
Avoid “'ReverseConvertProc' defined but not used” warning.

Move this function next to its unique caller (AceCadPreInit), and only
declare/define it when the input ABI is strictly less than 12.

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Cyril Brulebois <kibi@debian.org>
12 years agoacecad 1.5.0 xf86-input-acecad-1.5.0
Cyril Brulebois [Wed, 4 May 2011 22:23:24 +0000 (00:23 +0200)] 
acecad 1.5.0

Signed-off-by: Cyril Brulebois <kibi@debian.org>
13 years agoThe driver doesn't need libXext
Peter Hutterer [Thu, 2 Dec 2010 00:44:20 +0000 (10:44 +1000)] 
The driver doesn't need libXext

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
13 years agoBump to 1.4.99
Peter Hutterer [Thu, 2 Dec 2010 00:36:48 +0000 (10:36 +1000)] 
Bump to 1.4.99

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agoAdd mode field to InitValuatorAxisStruct
Peter Hutterer [Thu, 25 Nov 2010 03:01:53 +0000 (13:01 +1000)] 
Add mode field to InitValuatorAxisStruct

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agoAdjust to new PreInit for ABI 12.
Peter Hutterer [Fri, 10 Sep 2010 00:26:47 +0000 (10:26 +1000)] 
Adjust to new PreInit for ABI 12.

Most of the init is now handled by the server, not by the driver.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agoUse a local variable for history_size.
Peter Hutterer [Fri, 10 Sep 2010 00:33:01 +0000 (10:33 +1000)] 
Use a local variable for history_size.

Field was removed from InputInfoRec in ABI and the server hasn't actually
accessed this field for quite a while.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agoPurge close_proc, hasn't been called by the server for ages.
Peter Hutterer [Fri, 10 Sep 2010 00:23:19 +0000 (10:23 +1000)] 
Purge close_proc, hasn't been called by the server for ages.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agoMove default_options up, preparation work for ABI 12.
Peter Hutterer [Fri, 10 Sep 2010 00:20:00 +0000 (10:20 +1000)] 
Move default_options up, preparation work for ABI 12.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agoRemove libc wrapper usage for xcalloc, xfree, etc.
Peter Hutterer [Fri, 10 Sep 2010 00:10:08 +0000 (10:10 +1000)] 
Remove libc wrapper usage for xcalloc, xfree, etc.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agoReplace LocalDevicePtr with InputInfoPtr.
Peter Hutterer [Fri, 10 Sep 2010 00:08:41 +0000 (10:08 +1000)] 
Replace LocalDevicePtr with InputInfoPtr.

LocalDevicePtr was removed with input ABI 12, but InputInfoPtr has been
around for years anyway.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agoRemove usage of XI86_POINTER_CAPABLE.
Peter Hutterer [Fri, 10 Sep 2010 00:04:41 +0000 (10:04 +1000)] 
Remove usage of XI86_POINTER_CAPABLE.

Flag was a write-only flag in both the server and the driver has now been
removed from the server.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agoRemove refcnt field from InputDriverRec.
Alan Coopersmith [Thu, 28 Oct 2010 05:19:19 +0000 (22:19 -0700)] 
Remove refcnt field from InputDriverRec.

Wasn't used in the server and is now removed.

Fixes compiler error:
"acecad.c", line 111: too many struct/union initializers

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
13 years agoconfig: requires RANDR through xf86.h
Gaetan Nadon [Wed, 9 Jun 2010 20:34:03 +0000 (16:34 -0400)] 
config: requires RANDR through xf86.h

The xf86.h file contains external declarations specific to RANDR
Will not compile if this extension is not installed.
Because this is an optional extension, XORG_DRIVER_CHECK_EXT
must be used.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
13 years agoconfig: requires xext, kb and input extensions through xf86.h
Gaetan Nadon [Wed, 9 Jun 2010 20:32:39 +0000 (16:32 -0400)] 
config: requires xext, kb and input extensions through xf86.h

The xf86.h file includes headers from these protocols.
Will not compile if these extensions are not installed.
Because these extensions are always defined in the server, XORG_DRIVER_CHECK_EXT
should not be used.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
13 years agoconfig: use AC_PROG_INSTALL now supplied by XORG_DEFAULT_OPTIONS
Gaetan Nadon [Thu, 27 May 2010 23:26:56 +0000 (19:26 -0400)] 
config: use AC_PROG_INSTALL now supplied by XORG_DEFAULT_OPTIONS

It depends on util-macros 1.8
The existing statement can now be removed from the configuration file.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
13 years agoconfig: upgrade to util-macros 1.8 for additional man page support
Gaetan Nadon [Thu, 27 May 2010 23:25:22 +0000 (19:25 -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
The existing statement can now be removed from the configuration file.

Use Automake recommened $() for makefile variables.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
13 years agoconfig: acecad does not use the input protocol
Gaetan Nadon [Tue, 11 May 2010 00:40:45 +0000 (20:40 -0400)] 
config: acecad does not use the input protocol

There is no need to PKG_CHECK_MODULES inputproto

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
13 years agoconfig: AC_PROG_SED is required explicitly on Solaris
Gaetan Nadon [Tue, 11 May 2010 01:17:43 +0000 (21:17 -0400)] 
config: AC_PROG_SED is required explicitly on Solaris

It sets the SED env variable with an appropriate sed program path

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
14 years agoman: Use Autoconf provided $(AM_V_GEN)$(SED)
Gaetan Nadon [Sat, 17 Apr 2010 23:04:02 +0000 (19:04 -0400)] 
man: Use Autoconf provided $(AM_V_GEN)$(SED)

Enables silent rule and use platform appropriate version of sed.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
14 years agoconfig: optional extension check for inputproto not required
Gaetan Nadon [Fri, 16 Apr 2010 19:09:19 +0000 (15:09 -0400)] 
config: optional extension check for inputproto not required

The check should be in PKG_CHECK_MODULES permanently.

The XORG_DRIVER_CHECK_EXT will add inputproto to PKG_CHECK_MODULES
only if the extension is available. By definition, this extension
is always available and the acecad driver cannot function without it.

This is evidenced by the absence of XINPUT conditional code.

Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
14 years agoconfig: remove extension check for unused RANDR extension
Gaetan Nadon [Fri, 16 Apr 2010 00:01:51 +0000 (20:01 -0400)] 
config: remove extension check for unused RANDR extension

The randr protocol is not used, no randr*.h are included.

Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
14 years agoconfig: fix checking for extensions section
Gaetan Nadon [Thu, 15 Apr 2010 20:41:35 +0000 (16:41 -0400)] 
config: fix checking for extensions section

A hidden dependency on statement order was discovered.
The REQUIRE_MODULES variable was removed but needed.
Comments added to clarify the situation.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
14 years agoconfig: remove AC_PROG_CC as it overrides AC_PROG_C_C99
Gaetan Nadon [Mon, 12 Apr 2010 20:42:08 +0000 (16:42 -0400)] 
config: remove AC_PROG_CC as it overrides AC_PROG_C_C99

XORG_STRICT_OPTION from XORG_DEFAULT_OPTIONS calls
AC_PROG_C_C99. This sets gcc with -std=gnu99.
If AC_PROG_CC macro is called afterwards, it resets CC to gcc.

Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
14 years agoconfig: fix warnings and layout
Gaetan Nadon [Sun, 11 Apr 2010 02:13:17 +0000 (22:13 -0400)] 
config: fix warnings and layout

Minor upgrades. Layout and comment statements.
Remove AC_PROG_CC as it overrides AC_PROG_C_C99 from
XORG_STRICT_OPTION.

Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
14 years agoconfig: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS
Gaetan Nadon [Thu, 15 Apr 2010 12:41:27 +0000 (08:41 -0400)] 
config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS

Regroup AC statements at the top.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
14 years agoconfig: update AC_PREREQ statement to 2.60
Gaetan Nadon [Sun, 11 Apr 2010 00:41:06 +0000 (20:41 -0400)] 
config: update AC_PREREQ statement to 2.60

Unrelated to the previous patches, the new value simply reflects
the reality that the minimum level for autoconf to configure
all x.org modules is 2.60 dated June 2006.

ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz

Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
14 years agoconfig: simplify configuration regarding sysfs headers and library.
Gaetan Nadon [Sat, 10 Apr 2010 23:46:47 +0000 (19:46 -0400)] 
config: simplify configuration regarding sysfs headers and library.

Replace deprecated AC_HEADER_CHECK with AC_CHECK_HEADERS
AC_CHECK_LIB ensures sysfs library is present and adds -lsysfs
AC_CHECK_HEADERS verifies sysfs and linux input headers are present

Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
14 years agoconfig: add conditional inclusion of config.h
Gaetan Nadon [Mon, 12 Apr 2010 13:13:39 +0000 (09:13 -0400)] 
config: add conditional inclusion of config.h

Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
14 years agoconfig: remove AH_TOP autoheader statement
Gaetan Nadon [Fri, 9 Apr 2010 18:12:28 +0000 (14:12 -0400)] 
config: remove AH_TOP autoheader statement

The generated config.h does not need to include xorg-server.h
for the content it provides.
Add #include <xorg-server.h> in .[hc] files as needed.

Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
14 years agoconfig: move CWARNFLAGS from configure.ac to Makefile.am
Gaetan Nadon [Thu, 11 Feb 2010 15:08:07 +0000 (10:08 -0500)] 
config: move CWARNFLAGS from configure.ac to Makefile.am

Compiler warning flags should be explicitly set in the makefile
rather than being merged with other packages compiler flags.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
14 years agoUpdate Sun license notices to current X.Org standard form
Alan Coopersmith [Fri, 15 Jan 2010 23:13:24 +0000 (15:13 -0800)] 
Update Sun license notices to current X.Org standard form

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
14 years agoconfigure.ac: remove unused sdkdir=$(pkg-config...) statement
Gaetan Nadon [Wed, 16 Dec 2009 03:01:02 +0000 (22:01 -0500)] 
configure.ac: remove unused sdkdir=$(pkg-config...) statement

The sdkdir variable isn't use, so remove the statement.

Acked-by: Dan Nicholson <dbn.lists@gmail.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
14 years agoMakefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES
Gaetan Nadon [Mon, 23 Nov 2009 14:25:05 +0000 (09:25 -0500)] 
Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES

Now that the INSTALL file is generated.
Allows running make maintainer-clean.

14 years agoINSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
Gaetan Nadon [Wed, 28 Oct 2009 18:41:08 +0000 (14:41 -0400)] 
INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206

Automake 'foreign' option is specified in configure.ac.
Remove from Makefile.am

14 years agoINSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
Gaetan Nadon [Wed, 28 Oct 2009 18:09:09 +0000 (14:09 -0400)] 
INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206

Add missing INSTALL file. Use standard GNU file on building tarball
README may have been updated
Remove AUTHORS file as it is empty and no content available yet.
Remove NEWS file as it is empty and no content available yet.

14 years agoSeveral driver modules do not have a ChangeLog target in Makefile.am #23814
Gaetan Nadon [Mon, 26 Oct 2009 16:54:20 +0000 (12:54 -0400)] 
Several driver modules do not have a ChangeLog target in Makefile.am #23814

The git generated ChangeLog replaces the hand written one.
Update configure.ac to xorg-macros level 1.3.
Use XORG_DEFAULT_OPTIONS which replaces four XORG_* macros
Update Makefile.am to add ChangeLog target if missing
Remove ChangeLog from EXTRA_DIST or *CLEAN variables
This is a pre-req for the INSTALL_CMD

14 years ago.gitignore: use common defaults with custom section # 24239
Gaetan Nadon [Thu, 22 Oct 2009 16:34:16 +0000 (12:34 -0400)] 
.gitignore: use common defaults with custom section # 24239

Using common defaults will reduce errors and maintenance.
Only the very small or inexistent custom section need periodic maintenance
when the structure of the component changes. Do not edit defaults.

14 years agoRemove some unused crap from configure
Peter Hutterer [Fri, 11 Sep 2009 02:06:19 +0000 (12:06 +1000)] 
Remove some unused crap from configure

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
14 years agoacecad 1.4.0 xf86-input-acecad-1.4.0
Peter Hutterer [Wed, 9 Sep 2009 02:44:10 +0000 (12:44 +1000)] 
acecad 1.4.0

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
14 years agoRequire xorg-macros 1.3 for XORG_DEFAULT_OPTIONS
Peter Hutterer [Fri, 11 Sep 2009 01:54:31 +0000 (11:54 +1000)] 
Require xorg-macros 1.3 for XORG_DEFAULT_OPTIONS

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
14 years agoRemove redefinition of read()
Peter Hutterer [Wed, 9 Sep 2009 02:33:41 +0000 (12:33 +1000)] 
Remove redefinition of read()

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
14 years agoRemove unused code from TearDownProc
Peter Hutterer [Wed, 9 Sep 2009 02:32:08 +0000 (12:32 +1000)] 
Remove unused code from TearDownProc

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
14 years agounifdef XFree86LOADER, this isn't optional anymore anyway.
Peter Hutterer [Wed, 9 Sep 2009 02:30:30 +0000 (12:30 +1000)] 
unifdef XFree86LOADER, this isn't optional anymore anyway.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
14 years agoRemove RCS tags
Peter Hutterer [Wed, 9 Sep 2009 02:28:28 +0000 (12:28 +1000)] 
Remove RCS tags

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
14 years agoremove un-used _ACECAD_C_ define
Peter Hutterer [Wed, 9 Sep 2009 02:27:32 +0000 (12:27 +1000)] 
remove un-used _ACECAD_C_ define

14 years agoxf86-input-acecad: Remove unused .cvsignore file #23776
Gaetan Nadon [Mon, 7 Sep 2009 15:12:13 +0000 (11:12 -0400)] 
xf86-input-acecad: Remove unused .cvsignore file #23776

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
14 years agoCope with ABI_XINPUT_VERSION 7 - requires button/axes labels.
Peter Hutterer [Mon, 22 Jun 2009 03:36:54 +0000 (13:36 +1000)] 
Cope with ABI_XINPUT_VERSION 7 - requires button/axes labels.

We don't have an atom for relative pressure, so if the device is set to
relative, we export the axis as REL_Z instead.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
14 years agoFill in COPYING file, add SubmittingPatches URL to README
Alan Coopersmith [Tue, 12 May 2009 02:25:11 +0000 (19:25 -0700)] 
Fill in COPYING file, add SubmittingPatches URL to README

15 years agoacecad 1.3.0 xf86-input-acecad-1.3.0
Peter Hutterer [Tue, 24 Feb 2009 03:22:46 +0000 (13:22 +1000)] 
acecad 1.3.0

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
15 years agoJanitor: Correct make distcheck and minor configure.ac cleanup.
Paulo Cesar Pereira de Andrade [Mon, 2 Feb 2009 20:02:43 +0000 (18:02 -0200)] 
Janitor: Correct make distcheck and minor configure.ac cleanup.

15 years agoAdd README with pointers to mailing list, bugzilla & git repos
Alan Coopersmith [Thu, 29 Jan 2009 23:09:23 +0000 (15:09 -0800)] 
Add README with pointers to mailing list, bugzilla & git repos

15 years agoRemove xorgconfig & xorgcfg from See Also list in man page
Alan Coopersmith [Sat, 10 Jan 2009 00:09:43 +0000 (16:09 -0800)] 
Remove xorgconfig & xorgcfg from See Also list in man page

15 years agoCorrect wrong check for Linux libsysfs.
Paulo Cesar Pereira de Andrade [Fri, 28 Nov 2008 06:48:50 +0000 (04:48 -0200)] 
Correct wrong check for Linux libsysfs.

  This patch was the original one, and the previous test was a wrong
attempt to simplify the change.
  Triggered by tinderbox build.

15 years agoDont dlopen libsysfs.so, instead, link with it when available.
Paulo Cesar Pereira de Andrade [Fri, 28 Nov 2008 03:45:54 +0000 (01:45 -0200)] 
Dont dlopen libsysfs.so, instead, link with it when available.

15 years agoCheck for XINPUT ABI 3.
Peter Hutterer [Mon, 26 May 2008 12:30:23 +0000 (22:00 +0930)] 
Check for XINPUT ABI 3.

15 years agoCompile warning fixes.
Paulo Cesar Pereira de Andrade [Sun, 16 Mar 2008 06:01:23 +0000 (03:01 -0300)] 
Compile warning fixes.

Don't call xf86usleep, just call usleep directly.
Remove unused variables.

Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
16 years agoBump to 1.2.2 origin/HEAD origin/master xf86-input-acecad-1.2.2
Giuseppe Bilotta [Sun, 10 Feb 2008 07:52:46 +0000 (08:52 +0100)] 
Bump to 1.2.2

16 years agoacecad: fix blotchy input in Inkscape and the Gimp by not pretending to be the core...
Giuseppe Bilotta [Sat, 9 Feb 2008 21:32:13 +0000 (22:32 +0100)] 
acecad: fix blotchy input in Inkscape and the Gimp by not pretending to be the core pointer by default

16 years agoacecad: improve handling of botched input versions
Giuseppe Bilotta [Sat, 9 Feb 2008 18:51:57 +0000 (19:51 +0100)] 
acecad: improve handling of botched input versions

16 years agoacecad: fake device limits == screen limits in xserver 1.4 for xinput
Giuseppe Bilotta [Sat, 27 Oct 2007 23:12:28 +0000 (01:12 +0200)] 
acecad: fake device limits == screen limits in xserver 1.4 for xinput

xserver 1.4 does not do automatic coordinate scaling, so we have to do
it manually. But this breaks xinput clients that do their own scaling
using the device limits as reference. Pretend that they are the same as the
screen limits to work around this.

16 years agoacecad: set type_name to XI_TABLET
Giuseppe Bilotta [Sat, 27 Oct 2007 11:08:04 +0000 (13:08 +0200)] 
acecad: set type_name to XI_TABLET

16 years agoacecad: do our own scaling with USB device since it's not done in the kernel and...
Giuseppe Bilotta [Fri, 26 Oct 2007 19:00:19 +0000 (21:00 +0200)] 
acecad: do our own scaling with USB device since it's not done in the kernel and ConverProc() isn't called automatically by X

16 years agoacecad: don't crash when xf86IsCorePointer is not defined
Giuseppe Bilotta [Fri, 26 Oct 2007 18:12:19 +0000 (20:12 +0200)] 
acecad: don't crash when xf86IsCorePointer is not defined

16 years agoBump to 1.2.1 xf86-input-acecad-1.2.1
Julien Cristau [Fri, 7 Sep 2007 00:17:29 +0000 (02:17 +0200)] 
Bump to 1.2.1

16 years agoMake compatible with new input ABI
Alan Coopersmith [Wed, 29 Aug 2007 00:31:54 +0000 (17:31 -0700)] 
Make compatible with new input ABI

16 years agoDon't crash X when the tablet wasn't found.
Giuseppe Bilotta [Mon, 9 Jul 2007 09:03:00 +0000 (11:03 +0200)] 
Don't crash X when the tablet wasn't found.

X would crash when switching to console if the acecad module was loaded but the tablet had not been configured.

Fix by properly freeing structures before returning NULL in PreInit()

16 years agofix build on BSD systems.
Matthieu Herrb [Thu, 31 May 2007 05:34:13 +0000 (23:34 -0600)] 
fix build on BSD systems.

16 years agoAdd .gitignore
Matthieu Herrb [Thu, 31 May 2007 05:33:56 +0000 (23:33 -0600)] 
Add .gitignore

16 years agoOff-by-one (and comment) fix.
Paul Vojta [Mon, 30 Apr 2007 18:45:53 +0000 (11:45 -0700)] 
Off-by-one (and comment) fix.

Just a quick patch:

16 years agoBump to 1.2.0. xf86-input-acecad-1.2.0
Giuseppe Bilotta [Sun, 29 Apr 2007 03:09:41 +0000 (05:09 +0200)] 
Bump to 1.2.0.

16 years agoSimplify flag setup. autodev origin/autodev
Giuseppe Bilotta [Sun, 29 Apr 2007 03:02:03 +0000 (05:02 +0200)] 
Simplify flag setup.

16 years agoMore whitespace/coding style cleanups.
Giuseppe Bilotta [Sun, 29 Apr 2007 02:44:27 +0000 (04:44 +0200)] 
More whitespace/coding style cleanups.

16 years agoCentralize the success code for the probe routine.
Giuseppe Bilotta [Sun, 29 Apr 2007 02:42:04 +0000 (04:42 +0200)] 
Centralize the success code for the probe routine.

16 years agoKeep track of device availability.
Giuseppe Bilotta [Sat, 28 Apr 2007 13:32:32 +0000 (15:32 +0200)] 
Keep track of device availability.

Don't spam the log with errors about the device not being available, just inform the user when the device is available again.

16 years agoNOTAVAIL macro to check if errno means device not available.
Giuseppe Bilotta [Sat, 28 Apr 2007 13:10:25 +0000 (15:10 +0200)] 
NOTAVAIL macro to check if errno means device not available.

Define (and use) a NOTAVAIL macro that checks errno against ENODEV, ENXIO and ENOENT, instead of checking manually against ENODEV only.

16 years agoMake acecadAutoDev into a flag.
Giuseppe Bilotta [Sat, 28 Apr 2007 12:42:20 +0000 (14:42 +0200)] 
Make acecadAutoDev into a flag.

Introduce AUTODEV_FLAG for the flags field in AceCadPrivateRec to tell if we are autodetecting devices or not, instead of having a separate acecadAutoDev field.

16 years agoMake acecadUSB into a flag.
Giuseppe Bilotta [Sat, 28 Apr 2007 12:36:12 +0000 (14:36 +0200)] 
Make acecadUSB into a flag.

Introduce USB_FLAG for the flags field in AceCadPrivateRec to tell if we have a USB device or not, instead of having a separate acecadUSB field.

16 years agoMore whitespace cleanup.
Giuseppe Bilotta [Sat, 28 Apr 2007 12:27:58 +0000 (14:27 +0200)] 
More whitespace cleanup.

16 years agoMore coding style cleanups.
Giuseppe Bilotta [Sat, 28 Apr 2007 12:25:22 +0000 (14:25 +0200)] 
More coding style cleanups.

16 years agoAdd missing newlines in a couple of messages.
Giuseppe Bilotta [Sat, 28 Apr 2007 12:19:49 +0000 (14:19 +0200)] 
Add missing newlines in a couple of messages.

16 years agoWhitespace cleanup.
Giuseppe Bilotta [Sat, 28 Apr 2007 03:29:41 +0000 (05:29 +0200)] 
Whitespace cleanup.

16 years agoDe-spammify AceCadAutoDevProbe().
Giuseppe Bilotta [Sat, 28 Apr 2007 03:10:39 +0000 (05:10 +0200)] 
De-spammify AceCadAutoDevProbe().

Demote X_ERRORs in AceCadAutoDevProbe() to X_WARNINGs, and add an X-style
verbosity parameter. This is set to 0 during initial probe, and to 4 during
runtime probes.

16 years agoRe-probe on device not found on input if auto-dev is active.
Giuseppe Bilotta [Sat, 28 Apr 2007 02:55:26 +0000 (04:55 +0200)] 
Re-probe on device not found on input if auto-dev is active.

If USBReadInput() fails because the device is not being found, and auto-dev is
active, try re-probing for the device. The only downside of this procedure is
that the log may get spammed a lot as long as no device can be found.

16 years agoRe-probe for device if DeviceOn fails and auto-dev is active.
Giuseppe Bilotta [Sat, 28 Apr 2007 01:43:04 +0000 (03:43 +0200)] 
Re-probe for device if DeviceOn fails and auto-dev is active.

If DeviceOn does not find the device and auto-dev is active, run the probe
again to try to find the new location of the device (if present).

16 years agoDevice autodetection via sysfs.
Giuseppe Bilotta [Sat, 28 Apr 2007 01:09:17 +0000 (03:09 +0200)] 
Device autodetection via sysfs.

If support for sysfs is compiled in and the libsysfs library is found, the
acecad driver will now try to autodetect the device via sysfs at first. If this
fails, it will probe /dev/input/eventX devices.

Currently the Name option is ignored during sysfs detection: the first possibly
valid candidate is accepted without further checks.

16 years ago"Name" option to configure autodev detection string.
Giuseppe Bilotta [Fri, 27 Apr 2007 12:40:43 +0000 (14:40 +0200)] 
"Name" option to configure autodev detection string.

The string we look for when probing event devices can now be configured with
the "Name" option.

16 years agoMerge branch 'master' into autodev
Giuseppe Bilotta [Fri, 27 Apr 2007 10:23:44 +0000 (12:23 +0200)] 
Merge branch 'master' into autodev

16 years agoAdd autogen.sh and autogenerate ChangeLog to dist
Giuseppe Bilotta [Thu, 26 Apr 2007 22:30:58 +0000 (00:30 +0200)] 
Add autogen.sh and autogenerate ChangeLog to dist

Get rid of the manually maintained ChangeLog and put in some rules to
autogenerate it from git logs, following the xorg/lib/libXi example.

Also add ChangeLog and autogen.sh to the dist files.

16 years agoAdd autoconf check for linux/input.h
Giuseppe Bilotta [Thu, 26 Apr 2007 22:01:54 +0000 (00:01 +0200)] 
Add autoconf check for linux/input.h

Since X went modular, we cannot rely on LINUX_INPUT being defined even when the
Linux input subsystem is available. Fix: add an autoconf rule that checks for
linux/input.h and define LINUX_INPUT if the header is found.

16 years agoInitial support for device autodetection.
Giuseppe Bilotta [Thu, 26 Apr 2007 11:33:51 +0000 (13:33 +0200)] 
Initial support for device autodetection.

When the "Device" option is missing or set to "auto-dev" the acecad module will
attempt autodetection of the correct device.

Currently, it will probe all /dev/input/eventX nodes until one is found that
reports a device name that begins with "ACECAD".