summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* README: remove the warning, it's stable nowPeter Hutterer2014-02-111-2/+0
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* libevdev 0.9.1libevdev-0.9.1Peter Hutterer2014-01-291-1/+1
| | | | | | libevdev 1.0-rc1 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: remove NULL test for SW_MAX, 3.13 defines SW_MUTE_DEVICEPeter Hutterer2014-01-291-3/+0
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Bump sonamePeter Hutterer2014-01-291-1/+1
| | | | | | | | | | | | | Bump once to the stable interface we have now. This isn't really required as we're compatible with everything but functions deprecated with 0.4 but we might as well do it now to force a rebuild of everyone. Should've done that for 0.6 when we actually dropped the function, but ... Now that we have proper library versioning we shouldn't need any backwards-incompatible soname bumps for a while. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
* Add ld version-scriptDavid Herrmann2014-01-292-2/+108
| | | | | | | | | | | | | | | | | | | | | Explicit symbol versioning allows us to provide multiple versions of incompatible API changes. It is a very common practice in GNU world and avoids the problems occuring if distributions try to ship multiple version of a single DSO. Background information available at: http://people.redhat.com/drepper/dsohowto.pdf To see the symbol-versions, use objdump: objdump -T libevdev/.libs/libevdev.so.1.0.0 This can also be used to verify that all symbols are correctly exported (typos in linker-scripts are silently ignored by ld). Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Updated for evdev 0.6's API. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* include: update linux/input.h for kernel 3.13Peter Hutterer2014-01-221-1/+5
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Warn about a SYN_DROPPED right after finishing a syncPeter Hutterer2014-01-222-3/+116
| | | | | | | | | | | | If the first event after a completed device sync is a SYN_DROPPED, warn the user that they're not fast enough handling this device. The test for this is rather complicated since we can't write SYN_DROPPED through uinput so we have to juggle the device fd and a pipe and switch between the two at the right time (taking into account that libevdev will read events from the fd whenever it can). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: abort on unexpected log messagesPeter Hutterer2014-01-225-0/+46
| | | | | | | | | | | Add two log functions, one that aborts on a received message. We know when we expect to receive an error, so anytime this happens unexpectedly should terminate the test. And for those tests do issue a log message, let them ignore it and don't print anything. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Count the number of events needed for a full syncPeter Hutterer2014-01-221-4/+30
| | | | | | | | | Make sure we have a queue that is at least large enough to do a full sync after a SYN_DROPPED, plus store a few extra events in case some came in after the sync. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
* test: fix typoPeter Hutterer2014-01-171-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: rename a test to match what it's testing betterPeter Hutterer2014-01-171-2/+2
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Drop the argparse requirement for make-event-names.pyPeter Hutterer2014-01-152-11/+10
| | | | | | | | | We only take one option (path to linux/input.h) anyway so drop the argparse requirement. This way libevdev builds on RHEL6 too which doesn't ship argparse. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
* Drop --output flag and python generation code from make-event-names.pyPeter Hutterer2014-01-152-42/+2
| | | | | | | | This is a leftover from when the file was in evemu and used to generate python headers too. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
* include: update linux/input.h for kernel 3.12Peter Hutterer2014-01-093-6/+4
| | | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
* test: detect if we're running inside gdb and disable forkingPeter Hutterer2013-12-242-2/+40
| | | | | | | | | The Check test framework forks by default which is annoying when running gdb. Try to detect whether we're inside gdb by ptracing ourselves. If that works, we're not inside a debugger. If it doesn't, then assume we're inside a debugger and set CK_FORK to "no". Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Documentation rewordings and additionsPeter Hutterer2013-12-241-6/+9
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Documentation typo fixesPeter Hutterer2013-12-241-4/+4
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Add more cross-referencesPeter Hutterer2013-12-242-14/+14
| | | | | | | doxygen doesn't detect enum cross-references automatically, prefix them with @ref Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* doc: remove initial * from example code linesPeter Hutterer2013-12-242-108/+108
| | | | | | doxygen actually copies that over into the resulting output. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* libevdev 0.6libevdev-0.6Peter Hutterer2013-12-231-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: add basic link testPeter Hutterer2013-12-123-1/+12
| | | | | | | | This test doesn't do anything but compile and link against libevdev. It's a simple protection to avoid linker errors. If we ever have libs we depend on and they don't get resolved properly, this test should warn us in time. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: split tests into run-time and build-time testsPeter Hutterer2013-12-121-2/+5
| | | | | | The build-time tests don't do anything, we don't need to run them. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Don't treat devices with (ABS_MT_SLOT - 1) as multitouch devicesPeter Hutterer2013-12-103-2/+49
| | | | | | | | | | | | | Some devices (PS3 sixaxis controller) merely have a bunch of axes, without the semantic information that linux/input.h requires. For those, the ABS_MT range may be merely another axis, not the special range that we need to treat it with. Use a simple heuristic: if ABS_MT_SLOT - 1 is enabled, don't treat ABS_MT as multitouch axes. The ABS_MT_SLOT - 1 axis is not used for a real axis. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
* Merge branch 'ev-rep-handling'Peter Hutterer2013-12-093-4/+47
|\
| * Support EV_REP values through libevdev_get_event_valuePeter Hutterer2013-12-093-2/+45
| | | | | | | | | | | | | | | | | | We shouldn't have a separate API for that, the whole point of libevdev is to abstract the quirkyness of the ioctls into a common interface. So let's export the two EV_REP values through libevdev_get_event_value. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
| * Constify libevdev_get_repeatPeter Hutterer2013-12-092-2/+2
| | | | | | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* | State that the event is defined for a SYN_DROPPEDPeter Hutterer2013-12-092-3/+7
|/ | | | | | | | | | | | All clients that want to handle SYN_DROPPED correctly need to pass an EV_SYN through their own handlers before starting with the syn events. Rather than letting them synthesize that, guarantee that the event is defined the first time LIBEVDEV_READ_STATUS_SYNC is returned. This does not change existing behavior, it merely documents it so we can rely on it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Move the testing part to a separate pagePeter Hutterer2013-12-091-11/+13
| | | | | | Not something that interests the average visitor of the front page Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Add a doxygen page listing the ioctls and their current supportPeter Hutterer2013-12-091-1/+63
| | | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
* doc: add a placeholder man pagePeter Hutterer2013-12-094-0/+36
| | | | | | | | We don't provide man pages (the ones created by doxygen are pretty terrible) so provide a placeholder page to provide the minimum info and point people in the right direction. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Documentation fix, refer to correct functionPeter Hutterer2013-12-051-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Fix a typo in the documentationPeter Hutterer2013-12-051-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* build: set aux-dirDavid Herrmann2013-12-041-0/+1
| | | | | | | | | | | | | | | | | If we don't set AUX_DIR, I get errors during ./configure: /bin/sh: /home/david/missing: No such file or directory configure: WARNING: 'missing' script is too old or missing This error is ignored by default, but may cause failures with newer autoconf versions. Simply set the AUX_DIR to "build-aux" like many other autotools projects do. [This is an automake 1.14 bug, see the upstream report: http://lists.gnu.org/archive/html/bug-automake/2013-11/msg00007.html] Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Drop some leftover deprecated constants.Peter Hutterer2013-11-281-6/+0
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test-compile-pedantic: replace -Wpedantic with -pedanticGaetan Nadon2013-11-261-1/+1
| | | | | | | | -Wpedantic is a relatively new option, with -pedantic being the old version of it that works on older gcc versions too. Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* doxygen: specifying builddir is not requiredGaetan Nadon2013-11-261-1/+1
| | | | | | | | For the scenarios the module supports it is not required to be specified. Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* doxygen: fix 'dist' when the html docs have not yet been builtGaetan Nadon2013-11-251-1/+1
| | | | | | | | | | | | The reason why this did not work is that we do not have a fixed list of html doc files and it would be pain to maintain. The 'find' hack gets a list of html files but only when the package has already been built. Let's complement this hack with the html/index.html file which act as a build trigger as it is the target name. Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* doxygen: fix rebuild when not necessaryGaetan Nadon2013-11-251-4/+8
| | | | | | | | | Everytime make is invoked, doxygen is invoked to generate the html doc. Dependencies are added so it does rebuild when necessary. Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* doxygen: fix error msg: 'find: `html': No such file or directory'Gaetan Nadon2013-11-251-1/+1
| | | | | | | | Every time a make target is run in the doc directory when the html dir is absent, you get this error. Even with 'make clean'. Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* doxygen: remove redundant "dist_noinst_DATA = libevdev.doxygen.in" statementGaetan Nadon2013-11-251-2/+0
| | | | | | | All .in files in AC_CONFIG_FILES are distributed. Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* doxygen: implement silent rules in the makefileGaetan Nadon2013-11-251-2/+2
| | | | | Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* doxygen: invocation of doxygen fails due to hard coded pathGaetan Nadon2013-11-251-1/+1
| | | | | | | The makefile does not use $(DOXYGEN) variable. Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* doxygen: libevdev.doxygen must not be distributedGaetan Nadon2013-11-251-1/+1
| | | | | | | | | | | It reflects the values on the build machine. Same pattern as libevdev.pc vs libevdev.pc.in. For example, in libevdev.doxygen: HTML_EXTRA_STYLESHEET = ./libevdev.css Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: add a build test for -WpedanticPeter Hutterer2013-11-233-1/+11
| | | | | | | | | A user of libevdev may be compiled with -Wpedantic. Our header files should not produce any warnings, so add a simple test that merely includes both public header files and compiles with -Wpedantic -Werror. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
* Drop semicolons after getter/setter macrosPeter Hutterer2013-11-221-16/+16
| | | | | | | | libevdev.c:921:134: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic] Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
* Drop trailing comma from last element in the enumsPeter Hutterer2013-11-222-7/+6
| | | | | | | If a caller is compiled with -pedantic, this causes a few complaints Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
* Drop deprecated functionsPeter Hutterer2013-11-222-79/+0
| | | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
* libevdev 0.5libevdev-0.5Peter Hutterer2013-11-221-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* python: request version 2.6 or higherGaetan Nadon2013-11-201-1/+1
| | | | | | | | | | | | | This seems like a reasonable minimum version to require. Available in RHEL6 (2010) or Ubuntu (2010). Version 2.7 contains the argparse module so the check could be removed. The argparse module was introduced in v2.3.5 as an optional module. http://www.python.org/doc/versions/ Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* configure.ac: remove redundant AC_SUBST(PYTHON)Gaetan Nadon2013-11-201-1/+0
| | | | | | | This is already done by AM_PATH_PYTHON. Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>