summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2011-07-19Don't free anything in PreInit, provide an UnInit instead.Peter Hutterer2-7/+18
Also fixes: - leaking priv->buffer - fd closure bug Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-07-19Dont call xf86DeleteInput on PreInit failure.Peter Hutterer1-1/+0
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>
2011-07-08Always set the type name.Peter Hutterer1-0/+1
The server assigns "UNKNOWN", override it with something more specific. Introduced in f85c4b580c074f7054eac98753d1f4e91f08305e. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-06-27Assign local->private after allocating.Peter Hutterer1-0/+1
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>
2011-06-03Remove pointless checks on is_core_pointer.Cyril Brulebois1-22/+17
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Cyril Brulebois <kibi@debian.org>
2011-06-03Remove checks on the ABI now that 12 or higher is required.Cyril Brulebois1-22/+0
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Cyril Brulebois <kibi@debian.org>
2011-06-03Drop support for pre-input ABI 12 servers.Cyril Brulebois2-76/+4
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Cyril Brulebois <kibi@debian.org>
2011-06-03Fix “initialization from incompatible pointer type” for default_options.Cyril Brulebois1-1/+1
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>
2011-06-03Silence gcc: report_{x, y} are getting initialized.Cyril Brulebois1-1/+1
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>
2011-06-03Avoid “'ReverseConvertProc' defined but not used” warning.Cyril Brulebois2-17/+16
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>
2010-11-25Add mode field to InitValuatorAxisStructPeter Hutterer1-3/+15
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-11-25Adjust to new PreInit for ABI 12.Peter Hutterer2-12/+42
Most of the init is now handled by the server, not by the driver. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-11-25Use a local variable for history_size.Peter Hutterer1-1/+3
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>
2010-11-25Purge close_proc, hasn't been called by the server for ages.Peter Hutterer2-7/+0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-11-25Move default_options up, preparation work for ABI 12.Peter Hutterer1-12/+12
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-11-25Remove libc wrapper usage for xcalloc, xfree, etc.Peter Hutterer1-2/+2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-11-25Replace LocalDevicePtr with InputInfoPtr.Peter Hutterer2-21/+20
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>
2010-11-25Remove usage of XI86_POINTER_CAPABLE.Peter Hutterer1-1/+1
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>
2010-10-27Remove refcnt field from InputDriverRec.Alan Coopersmith1-2/+1
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>
2010-04-15config: simplify configuration regarding sysfs headers and library.Gaetan Nadon3-17/+12
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>
2010-04-15config: add conditional inclusion of config.hGaetan Nadon1-0/+2
Acked-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-04-15config: remove AH_TOP autoheader statementGaetan Nadon1-0/+1
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>
2010-02-11config: move CWARNFLAGS from configure.ac to Makefile.amGaetan Nadon1-1/+2
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>
2009-09-09Remove redefinition of read()Peter Hutterer1-4/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-09Remove unused code from TearDownProcPeter Hutterer1-12/+0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-09unifdef XFree86LOADER, this isn't optional anymore anyway.Peter Hutterer1-2/+0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-09Remove RCS tagsPeter Hutterer2-2/+0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-09remove un-used _ACECAD_C_ definePeter Hutterer1-1/+0
2009-09-08xf86-input-acecad: Remove unused .cvsignore file #23776Gaetan Nadon1-6/+0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-22Cope with ABI_XINPUT_VERSION 7 - requires button/axes labels.Peter Hutterer1-3/+43
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>
2009-02-02Janitor: Correct make distcheck and minor configure.ac cleanup.Paulo Cesar Pereira de Andrade1-0/+2
2008-11-28Dont dlopen libsysfs.so, instead, link with it when available.Paulo Cesar Pereira de Andrade2-46/+46
2008-05-27Check for XINPUT ABI 3.Peter Hutterer1-1/+4
2008-05-01Compile warning fixes.Paulo Cesar Pereira de Andrade2-3/+2
Don't call xf86usleep, just call usleep directly. Remove unused variables. Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
2008-02-09acecad: fix blotchy input in Inkscape and the Gimp by not pretending to be ↵Giuseppe Bilotta1-2/+2
the core pointer by default
2008-02-09acecad: improve handling of botched input versionsGiuseppe Bilotta1-3/+8
2007-10-28acecad: fake device limits == screen limits in xserver 1.4 for xinputGiuseppe Bilotta1-1/+19
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.
2007-10-27acecad: set type_name to XI_TABLETGiuseppe Bilotta1-1/+1
2007-10-26acecad: do our own scaling with USB device since it's not done in the kernel ↵Giuseppe Bilotta1-3/+9
and ConverProc() isn't called automatically by X
2007-10-26acecad: don't crash when xf86IsCorePointer is not definedGiuseppe Bilotta1-2/+7
2007-08-28Make compatible with new input ABIAlan Coopersmith1-0/+8
2007-07-09Don't crash X when the tablet wasn't found.Giuseppe Bilotta1-1/+5
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()
2007-05-30fix build on BSD systems.Matthieu Herrb1-1/+1
2007-05-01Off-by-one (and comment) fix.Paul Vojta1-3/+3
Just a quick patch:
2007-04-29Simplify flag setup.autodevGiuseppe Bilotta1-9/+2
2007-04-29More whitespace/coding style cleanups.Giuseppe Bilotta1-19/+19
2007-04-29Centralize the success code for the probe routine.Giuseppe Bilotta1-8/+8
2007-04-28Keep track of device availability.Giuseppe Bilotta2-16/+34
Don't spam the log with errors about the device not being available, just inform the user when the device is available again.
2007-04-28NOTAVAIL macro to check if errno means device not available.Giuseppe Bilotta2-1/+3
Define (and use) a NOTAVAIL macro that checks errno against ENODEV, ENXIO and ENOENT, instead of checking manually against ENODEV only.
2007-04-28Make acecadAutoDev into a flag.Giuseppe Bilotta2-5/+5
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.