summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix test warningsHEADmasterHenrik Rydberg2021-12-071-2/+2
| | | | | | | | The unit tests were using stack-allocated memory smaller than the maximum matrix size, causing compiler warnings. Fixed with this patch. Signed-off-by: Henrik Rydberg <rydberg@bitmath.se>
* Release mtdev-1.1.6v1.1.6Henrik Rydberg2020-01-261-1/+1
| | | | Signed-off-by: Henrik Rydberg <rydberg@bitmath.se>
* adjust for 64bit time_t for 32bit architecturesKhem Raj2020-01-262-3/+15
| | | | | | | | | | libc that has support for 32 bit applications to use 64 bit time_t supplies __USE_TIME_BITS64 define [1] [1] https://sourceware.org/glibc/wiki/Y2038ProofnessDesign Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Henrik Rydberg <rydberg@bitmath.se>
* Use a macro for `nlongs` so it can be used in constant expressionMichael Forney2020-01-261-8/+4
| | | | | | | | | | | | | This way, it can be used to specify the `absbits` array size (in `mtdev_configure`) without making it a VLA. VLAs are an optional feature in C11, and in this case we can determine the array size statically. This also matches the macros used in libevdev and libinput. Signed-off-by: Michael Forney <mforney@mforney.org> Signed-off-by: Henrik Rydberg <rydberg@bitmath.se>
* mtdev-matching.c: declare global variables staticMartin Kepplinger2017-11-291-2/+2
| | | | | | n1 and n2 are only locally used and can thus be static. Signed-off-by: Martin Kepplinger <martink@posteo.de>
* mtdev-mapgen.c: declare init_caps() staticMartin Kepplinger2017-11-291-1/+1
| | | | | | init_caps() is only locally used and can thus be static. Signed-off-by: Martin Kepplinger <martink@posteo.de>
* caps.c: declare mtdev_set_slots() staticMartin Kepplinger2017-11-291-1/+1
| | | | | | mtdev_set_slots() is only used internally, so it should be static. Signed-off-by: Martin Kepplinger <martink@posteo.de>
* Release mtdev-1.1.5v1.1.5baserock/genivi/baselineHenrik Rydberg2014-02-281-1/+1
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* build: Fix srcdir != builddir from gitColin Walters2014-02-281-1/+1
| | | | | | | | | Make it possible to build the source out-of-tree. The gnome-continuous build system does this by default. Signed-off-by: Colin Walters <walters@verbum.org> [rydberg@euromail.se: Resolve merge conflict] Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* test: fix out-of-tree buildsRoss Burton2013-11-161-1/+1
| | | | | | | | Some tests do #include relative to the top-level, so add top_srcdir to the include path as otherwise out-of-tree builds can't find the files. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Release mtdev-1.1.4v1.1.4Henrik Rydberg2013-08-031-1/+1
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Merge more build fixes from Peter Hutterer, along with a more explicitHenrik Rydberg2013-07-316-10/+21
|\ | | | | | | | | | | declaration of the backwards compatibility constraints on the API. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
| * Enable silent rules by defaultPeter Hutterer2013-07-311-0/+1
| | | | | | | | | | | | silent rules make it easier to spot compiler errors Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
| * test: silence compiler warning - implicit declaration of function ‘atoi’Peter Hutterer2013-07-311-0/+1
| | | | | | | | | | | | | | | | mtdev-kernel.c:130:2: warning: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration] eslot = atoi(argv[1]) + 1; Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
| * Fix compiler warning - implicit declaration of function 'abs'Peter Hutterer2013-07-311-0/+1
| | | | | | | | | | | | | | | | match_four.c:80:4: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration] *dist++ = abs(q->x - p->x) + abs(q->y - p->y); Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
| * Replace hardcoded 11 with a definePeter Hutterer2013-07-313-10/+18
|/ | | | | | | The 11 comes from the legacy API that we need to be binary compatible with. Make this clear with a define and a comment. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Merge build fixes from Peter Hutterer.Henrik Rydberg2013-07-254-4/+3
|\ | | | | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
| * Rename INCLUDES to AM_CPPFLAGSPeter Hutterer2013-07-243-3/+3
| | | | | | | | | | | | src/Makefile.am:22: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
| * Drop maintainer mode - enable by defaultPeter Hutterer2013-07-241-1/+0
|/ | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Release mtdev-1.1.3v1.1.3Henrik Rydberg2012-08-221-1/+1
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Fix pc file to allow compiling with mtdev installed in non-std path.David Kozub2012-05-291-0/+1
| | | | | | | | | | | The pkgconfig file does not specify the -I flag needed to be able to compile with `pkg-config mtdev --cflags` when libmtdev is installed to a directory that is not searched by the C compiler by default. This patch fixes the issue. Signed-off-by: David Kozub <zub@linux.fjfi.cvut.cz> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Release mtdev-1.1.2v1.1.2Henrik Rydberg2012-02-201-1/+1
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add support for kernel MT slot state retrievalHenrik Rydberg2012-02-162-0/+30
| | | | | | | | From kernel 3.4, extraction of the MT slot state is supported via the EVIOGMTSLOTS ioctl. This patch initializes the slots using that information. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add the missing distance event to the internal slot representationv1.1.1Henrik Rydberg2012-01-121-0/+1
| | | | | | | | The new distance value was missing from the internal representation, leading to memory corruption for devices supporting the event. Fixed with this patch. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Return EINVAL for invalid parameters on mtdev_init.Peter Hutterer2011-04-191-1/+4
| | | | | | [rydberg@euromail.se: minor cleanup] Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* mtdev_close should ignore NULL devices.Peter Hutterer2011-04-191-5/+7
| | | | | | | Saves us one goto label in mtdev_init. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Release mtdev v1.1.0v1.1.0Henrik Rydberg2010-12-221-1/+1
| | | | | | This version includes backwards-compatible API changes, while keeping the ABI stable. Applications that want to migrate to the new API, compile with -DMTDEV_NO_LEGACY_API.
* mtdev-test: output MT event supportHenrik Rydberg2010-12-221-0/+23
| | | | | | At startup, output the MT events supported by the device. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add support for ABS_MT_DISTANCEHenrik Rydberg2010-12-223-4/+10
| | | | | | | | | In the upcoming 2.6.38 kernel, support for hovering is introduced. Add the ABS_MT_DISTANCE to the extended set of handled ABS_MT events. The change is binary compatible with existing libraries. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Introduce a stable ABIHenrik Rydberg2010-12-229-142/+425
| | | | | | | | | | | | The current mtdev is not ABI stable, and the upcoming additions to the kernel api will break ABI. This patch starts the process of keeping binary compatibility with old programs, by moving the abi-specific parts under a special flag, MTDEV_NO_LEGACY_API, and makes sure the internal parts compiles with MTDEV_NO_LEGACY_API set. This way, older programs will still work, old programs will still compile, and new programs will be able to use the additions. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Allow use in c++ applicationsHenrik Rydberg2010-12-223-0/+24
| | | | | Reported-by: Armando Visconti <armando.visconti@st.com> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* mtdev v1.0.11v1.0.11Henrik Rydberg2010-11-071-1/+1
|
* Add and test a simple kernel matcherHenrik Rydberg2010-11-074-15/+186
| | | | | | | | | | This matcher is for up to four fingers, and has these properties: * Approximately 1.4 times faster at 4 fingers * Approximately 4.0 times faster at 2 fingers * Roughly 100 lines of code Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Generate kernel matcher dataHenrik Rydberg2010-11-073-1/+163
| | | | | | | This application generates the matcher tables of the tracking library in the linux kernel. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add mtdev-matching test programHenrik Rydberg2010-10-123-1/+146
| | | | | | | Measures matching speed and provides some historically difficult test cases. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* mtdev v1.0.10v1.0.10Henrik Rydberg2010-09-071-1/+1
|
* Fall back to single-touch position and pressure dimensionsHenrik Rydberg2010-09-071-0/+7
| | | | | | | | In case mtdev is driving a non-MT device, basic dimensions are not set properly. Fall back on ABS_X/Y and ABS_PRESSURE, such that basic pointer operations can be supported through mtdev. Signed-off-by: Henrik Rydberg <rydberg@bitmath.org>
* Install mapping and plumbing header filesHenrik Rydberg2010-09-071-1/+4
| | | | | | | Applications may need to know the property mapping, and the plumbing interface is actually supported, so install both headers. Signed-off-by: Henrik Rydberg <rydberg@bitmath.org>
* Complete mtdev property mappingHenrik Rydberg2010-09-072-6/+12
| | | | | | | Add the missing property values to the mapgen output, and insert the result in the mtdev mapping header file. Signed-off-by: Henrik Rydberg <rydberg@bitmath.org>
* mtdev v1.0.9v1.0.9Henrik Rydberg2010-08-181-1/+1
|
* Correct logic for kernel MT slots devicesHenrik Rydberg2010-08-181-3/+3
| | | | | | | This patch fixes the broken logic to detect the kernel MT slots protocol, such that MT slots devices may pass through mtdev properly. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* mtdev v1.0.8v1.0.8Henrik Rydberg2010-08-021-1/+1
|
* Remove erroneous dependency on xorg macrosHenrik Rydberg2010-08-025-10/+27
| | | | | | | | This package has no external dependencies and should not depend on the xorg macros. This patch removes the dependency, adds a tailored INSTALL file, and uses git to generate the ChangeLog. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* mtdev v1.0.7v1.0.7Henrik Rydberg2010-07-211-1/+1
|
* The forthcoming 2.6.36 kernel does not define the MT_SLOT_ABS_EVENTSHenrik Rydberg2010-07-211-0/+2
| | | | | | list, so make sure it is always defined in mtdev.h Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* mtdev v1.0.6v1.0.6Henrik Rydberg2010-07-191-1/+1
|
* Change test program name to mtdev-testHenrik Rydberg2010-07-193-4/+5
| | | | | | | In order to simplify packaging, rename the current mtdev device test program to mtdev-test. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* mtdev v1.0.5v1.0.5Henrik Rydberg2010-07-151-1/+1
|
* Add missing header files to sources directiveHenrik Rydberg2010-07-151-0/+7
| | | | | | | | In order for make dist-gzip to work properly, all files needed to build the system need to be listed. This patch adds the missing header files to the sources directive. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* mtdev v1.0.4v1.0.4Henrik Rydberg2010-07-131-1/+1
|