summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* libevdev 1.0.1libevdev-1.0.1libevdev-1.0-branchPeter Hutterer2014-03-071-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Fix a wrong reference in the libevdev_next_event documentationPeter Hutterer2014-03-071-1/+1
| | | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit 4390845fd2ed0e153c5fbba9871adff70dd1c145)
* Document the FORCE_SYNC behavior a bit betterPeter Hutterer2014-03-071-0/+7
| | | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit 0deacd5c1ea587350e8acb4e760ed1711ad82a45)
* Fix memory leaks when failing to create a uinput devicePeter Hutterer2014-03-071-13/+4
| | | | | | | | | | | For an invalid fd, or a failure to open the device, the pre-allocated uinput device struct would leak. We can drop the open_uinput() function now, since skipping to the error handling means we'll return -errno anyway. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit fdf737494ed940d68ce68c52ee029417bb68c8ff)
* Document that the return value of get_name|uniq|phys is not permanentPeter Hutterer2014-03-071-0/+24
| | | | | | | | It's a pointer to the copy libevdev has, but that copy may be freed by the caller if someone calls e.g. libevdev_set_name() Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit 2c4daec150f1026cdf7589092b5644e306ceb2ab)
* Plug a memory leak for name, uniq, physPeter Hutterer2014-03-071-1/+4
| | | | | | | | | | | If a device is assigned a name, uniq and/or phys before calling libevdev_set_fd(), those values would leak. Change the default alloc to calloc, so name, uniq, and phys are initialized to zero before we call libevdev_reset Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit f162f00f1db2cd0141958a4d8ed4a665bfc888e3)
* Fix the include directives when building in tools/Emmanuele Bassi2014-03-071-1/+1
| | | | | | | | | We need to add top_srcdir to fix the build when srcdir != builddir. Signed-off-by: Emmanuele Bassi <ebassi@gnome.org> Reviewed-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit b215120e39b4c87bcee11a0a500740a21e6ea0f4)
* libevdev 1.0libevdev-1.0Peter Hutterer2014-02-181-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Actually filter by log priorityPeter Hutterer2014-02-132-1/+77
| | | | | | | | If a message is higher than the current priority, filter it. And add a few tests that the priority is handled the way it should. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
* Use 0 instead of "zero"Peter Hutterer2014-02-121-7/+7
| | | | | | | | We're a bit inconsistent here anyway because of the ample use of "non-zero" which can't really be converted to non-0. But let's at least be consistent with the use of 0 instead of zero. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* More documentation fixes and improvementsPeter Hutterer2014-02-122-31/+58
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Mark a few more functions as signal-safePeter Hutterer2014-02-121-0/+14
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Improve the documentation a bitPeter Hutterer2014-02-111-11/+24
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Document that we don't support EVIOCREVOKEPeter Hutterer2014-02-111-0/+3
| | | | | | | This is intentional, see http://lists.freedesktop.org/archives/input-tools/2014-January/000688.html Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* 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>