Peter Hutterer [Thu, 5 Jan 2023 00:11:37 +0000 (10:11 +1000)]
gitlab CI: skip the right tests in the tarball jobs
Use the new needs-uinput suite specifier for the meson build job, and
use --no-tests for ninja dist in the autotools build job.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Wed, 4 Jan 2023 23:35:40 +0000 (09:35 +1000)]
meson.build: add the tests that need uinput into a needs-uinput suite
This way we can skip it all by meson test --no-suite=needs-uinput
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Wed, 4 Jan 2023 23:25:26 +0000 (09:25 +1000)]
gitlab CI: replace the meson-build.sh with the libinput one
The libinput one is more generic and expressive, taking arguments and
whatnot.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Wed, 4 Jan 2023 23:16:15 +0000 (09:16 +1000)]
gitlab CI: drop MESON_SKIP_TEST variables
In the no-check:meson job, the ninja arg was "dist" so the test would be
run as part of that anyway (and skipped, since we didn't have check).
In the no-doxygen-check:meson job, the ninja arg was zero so the test
would be skipped but since we don't have check we might as well just
run it as empty test suite.
And the same applies to the scan-build job, running the test shouldn't
hurt here.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Wed, 4 Jan 2023 06:25:03 +0000 (16:25 +1000)]
gitlab CI: drop the custom meson to junit conversion script
And always collect test logs, makes it easier to debug when things fail
to go wrong
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Wed, 4 Jan 2023 05:46:44 +0000 (15:46 +1000)]
test: drop the valgrind make check wrappers from autotools
We have meson with a proper test suite setup and this currently breaks
the CI due to some Arch issues with glibc debuginfo packages. Let's just
drop this so we don't run valgrind unconditionally.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Wed, 4 Jan 2023 05:20:54 +0000 (15:20 +1000)]
gitlab CI: bump to newer Ubuntus
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Wed, 4 Jan 2023 05:19:51 +0000 (15:19 +1000)]
gitlab CI: bump to a newer version of the templates
Required by the debian sid containers, otherwise we fail because of a
missing /etc/apt/sources.list file.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Wed, 4 Jan 2023 04:46:01 +0000 (14:46 +1000)]
gitlab CI: do not retry the qemu runs
See libinput commit
fb4f4131a112201c86c510179cfc939fcfa8aece by Benjamin
Tissoires
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Wed, 4 Jan 2023 04:42:40 +0000 (14:42 +1000)]
gitlab CI: change an explicit Fedora to {{distro}}
See libinput commit
0d602e12a4b66d5b5f27d2a9fd9899d43cf128fe by Benjamin
Tissoires
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Wed, 4 Jan 2023 04:41:03 +0000 (14:41 +1000)]
gitlab CI: prettify the include of templates
Identical to libinput commit
c8c825289f1b7575ee10b849c04f5caa60483a7e by
Benjamin Tissoires.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
illiliti [Thu, 20 Oct 2022 20:08:05 +0000 (23:08 +0300)]
meson: Use proper type for bool object
Fix invalid bool usage which violates official meson specification and thus
breaks muon, an implementation of meson written in C.
Signed-off-by: illiliti <illiliti@protonmail.com>
Zixian Liu [Tue, 16 Aug 2022 09:00:08 +0000 (09:00 +0000)]
Correct document
Douglas R. Reno [Mon, 8 Aug 2022 22:26:36 +0000 (22:26 +0000)]
configure.ac: Update the bug report URL.
While I was running the tests for libevdev on a
system, I had a test failure, and it told me to report it to
bugs.freedesktop.org.
This project uses GitLab now, so update the URL.
Signed-off-by: Douglas R. Reno <renodr@linuxfromscratch.org>
Peter Hutterer [Tue, 2 Aug 2022 01:21:12 +0000 (11:21 +1000)]
libevdev 1.13.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Tue, 2 Aug 2022 01:09:51 +0000 (11:09 +1000)]
include: sync event codes with kernel 5.19
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Mon, 11 Jul 2022 05:45:26 +0000 (15:45 +1000)]
meson: drop the uinput.h header listing
This is a noop, meson gets its compile dependencies from the compiler,
listing it here makes no difference.
Same is true for listing the other two linux/input/*.h headers as
sources.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Mon, 11 Jul 2022 05:44:15 +0000 (15:44 +1000)]
meson.build: drop the use of join_paths
Replace with the slash notation supported since 0.49
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Mon, 11 Jul 2022 05:41:14 +0000 (15:41 +1000)]
meson.build: use project_source_root() instead of source_root()
The latter is deprecated, so let's bump the meson version requirement
and use the newer, shiny feature.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Tue, 5 Jul 2022 04:02:23 +0000 (14:02 +1000)]
uinput: use named initializers for the event struct
With the 64 bit timestamps, the struct layout changes into a flatter
version, so let's use the input_event_(u)sec helpers to transparently
handle this.
Fixes #25
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Mon, 11 Jul 2022 00:29:12 +0000 (10:29 +1000)]
Fix a few whitespace/coding style issues
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Mon, 11 Jul 2022 00:31:07 +0000 (10:31 +1000)]
Fix a compiler warning
[1/16] Compiling C object libevdev.so.2.3.0.p/libevdev_libevdev.c.o
../libevdev/libevdev.c:665:40: warning: argument 2 of type ‘struct slot_change_state[dev->num_slots]’ declared as a variable length array [-Wvla-parameter]
665 | struct slot_change_state changes_out[dev->num_slots])
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
../libevdev/libevdev.c:47:52: note: previously declared as a pointer ‘struct slot_change_state *’
47 | struct slot_change_state *changes_out);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Mon, 11 Jul 2022 05:16:23 +0000 (15:16 +1000)]
meson: up the timeout to 10s per test
Fixes #26
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Fri, 25 Mar 2022 04:37:28 +0000 (14:37 +1000)]
meson.build: install the mouse-dpi-tool man page
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Fri, 25 Mar 2022 04:32:48 +0000 (14:32 +1000)]
libevdev 1.12.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Tue, 22 Mar 2022 02:33:16 +0000 (12:33 +1000)]
include: sync key codes with kernel 5.17
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Tue, 1 Feb 2022 22:30:11 +0000 (08:30 +1000)]
gitlab CI: update to current distribution versions, drop Centos
No big point building for Centos 7 anywmore, and Centos 8 is now Centos
Stream only which needs fixing in the CI templates first.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Stephen Kitt [Sun, 14 Nov 2021 17:28:26 +0000 (18:28 +0100)]
Add a manpage for mouse-dpi-tool
Signed-off-by: Stephen Kitt <steve@sk2.org>
Peter Hutterer [Mon, 8 Nov 2021 23:51:10 +0000 (09:51 +1000)]
libevdev 1.12.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Mon, 8 Nov 2021 23:17:16 +0000 (09:17 +1000)]
tools: add a helper tool to list all currently known codes
A non-installed tool to make it easy to check if newly added codes are
indeed supported correctly.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Mon, 8 Nov 2021 22:53:15 +0000 (08:53 +1000)]
include: sync event codes with kernel 5.15
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
José Expósito [Sat, 4 Sep 2021 11:30:17 +0000 (13:30 +0200)]
doc: fix initialization and setup error
Remove an unnecessary and unmatched curly bracket from the demo code.
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
José Expósito [Sat, 4 Sep 2021 11:21:42 +0000 (13:21 +0200)]
doc: fix uinput device creation warnings
The example code for creating uinput devices produces the following
warnings:
warning: unused variable ‘ev’ [-Wunused-variable]
| struct input_event ev[2];
| ^~
warning: unused variable ‘new_fd’ [-Wunused-variable]
| int fd, new_fd, uifd;
| ^~~~~~
warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized]
| return err;
| ^~~
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Ulrich Ölmann [Tue, 17 Aug 2021 16:33:58 +0000 (18:33 +0200)]
doc: fix typos
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Ulrich Ölmann [Tue, 17 Aug 2021 13:09:26 +0000 (15:09 +0200)]
doc: fix uinput example code
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Peter Hutterer [Sun, 25 Jul 2021 23:41:55 +0000 (09:41 +1000)]
gitlab CI: update to latest ci-templates
We can ditch the custom localhost usages and instead use the vmctl and
ssh-config aliases.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Simeon Schaub [Mon, 21 Jun 2021 00:16:24 +0000 (02:16 +0200)]
build: properly link against rt
This is especially relevant for cross-compilation, since libevdev uses
`clock_gettime`.
This came up in https://github.com/JuliaPackaging/Yggdrasil/pull/3201.
Signed-off-by: Simeon Schaub <simeondavidschaub99@gmail.com>
Peter Hutterer [Wed, 19 May 2021 00:17:10 +0000 (10:17 +1000)]
gitlab CI: bump to Fedora 34 and Ubuntu 21.04
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Wed, 19 May 2021 00:29:00 +0000 (10:29 +1000)]
gitlab CI: make the tarball distro selection automatic
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Wed, 19 May 2021 00:25:19 +0000 (10:25 +1000)]
gitlab CI: make the qemu selection automatic
Generate the snippet for whichever is the last version in the list for the
want_qemu tag.
And move the want_qemu tag up so it's more obvious in the config file.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Richard Purdie [Sat, 20 Feb 2021 14:41:01 +0000 (14:41 +0000)]
make-event-names: Fix determinism issue
The order of dict values is not deterministic in python leading to differing
header file generation which results in differing build output for the same
configuration. Sort to remove this inconsistency and make the output
reproducible.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Reviewed-by: Filipe Laíns <lains@archlinux.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Duna Oh [Mon, 7 Feb 2022 16:58:20 +0000 (01:58 +0900)]
packaging: Bump up to 1.11.0
jeon [Wed, 6 Jan 2021 07:00:34 +0000 (16:00 +0900)]
packaging: Bump up to 1.10.0
jeon [Fri, 21 Feb 2020 05:41:48 +0000 (14:41 +0900)]
packaging: Bump up to 1.8.0
Sung-Jin Park [Fri, 20 Oct 2017 04:38:55 +0000 (13:38 +0900)]
packaging: bump to 1.5.7
Change-Id: I377188db7c942f3be00a1faef156250c8873b38a
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
Sung-Jin Park [Fri, 20 Oct 2017 04:38:18 +0000 (13:38 +0900)]
tools: fix missing separator error in Makefile.am
Change-Id: I1fc676cea763b626cac4b31698f539f1265a6bd0
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
Sung-Jin Park [Tue, 25 Apr 2017 04:29:53 +0000 (13:29 +0900)]
packaging: correct TZ_SYS_RO_SHARE macro to remove build warning
Change-Id: I77e195c5621fc35098b309d3e55cbd9c528b4c21
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
Sung-Jin Park [Tue, 25 Apr 2017 04:28:51 +0000 (13:28 +0900)]
packaging: remove touchpad-edge-detector from install list
Change-Id: Ie593dad384d5082b9d077394980f64343d19e282
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
Sung-Jin Park [Wed, 22 Mar 2017 05:15:42 +0000 (14:15 +0900)]
packaging: update packaging file to install license file via %license macro
Change-Id: I747b1019f81b98851f43079bed674f0bff40c126
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
Sung-Jin Park [Fri, 11 Mar 2016 02:47:07 +0000 (11:47 +0900)]
Apply directory macros
Change-Id: I2e082b618708edaf8a5558bc423ae30b8ec321ef
Mun, Gwan-gyeong [Tue, 4 Aug 2015 08:09:12 +0000 (17:09 +0900)]
Add manifest for security domain policy
Change-Id: I859d803d0550049c160da57305d140d4819c4ea1
Manuel Bachmann [Mon, 29 Dec 2014 13:21:47 +0000 (14:21 +0100)]
packaging: bump to 1.2.2
Change-Id: I8a589d5722acfe7e1a5b528b18ad6bb3c85a4899
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
Philippe Coval [Wed, 21 May 2014 08:21:36 +0000 (10:21 +0200)]
packaging: use upstream tags
Change-Id: If7fedff02224116abfa499d5afed5e7f0e1a75c4
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
Philippe Coval [Fri, 28 Feb 2014 15:56:48 +0000 (16:56 +0100)]
packaging: Initial packaging on 1.0 for Tizen
Change-Id: I94dfb72c793725b422981a1a9785e4b7b97ff812
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
Peter Hutterer [Mon, 1 Feb 2021 05:51:10 +0000 (15:51 +1000)]
libevdev 1.11.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Thu, 17 Sep 2020 05:56:41 +0000 (15:56 +1000)]
Change to the (always intended) MIT license
Due to what must've been a copy/paste error many years ago, the license text
for libevdev wasn't actually the MIT license. Let's rectify this, it was
always MIT intended anyway.
To make this more obvious and reduce the chance of copy/paste mistakes, use
the SPDX license identifier in the various source files. The two installed
public header files have the full license text.
All contributors with copyrightable contributions have ACKed the license
change to MIT, either in the MR directly [1] or privately in reply to an
email.
[1] https://gitlab.freedesktop.org/libevdev/libevdev/-/merge_requests/69
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Alexander Dahl <ada@thorsis.com>
Acked-by: Andreas Pokorny <andreas.pokorny@canonical.com>
Acked-by: Armin K <krejzi@email.com>
Acked-by: Benjamin Tissoires <btissoir@redhat.com>
Acked-by: David Herrmann <dh.herrmann@gmail.com>
Acked-by: Deepa Dinamani <deepa.kernel@gmail.com>
Acked-by: Emmanuele Bassi <ebassi@gnome.org>
Acked-by: Gaetan Nadon <memsize@videotron.ca>
Acked-by: George Thomas <georgefsthomas@gmail.com>
Acked-by: Michael Forney <mforney@mforney.org>
Acked-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
Acked-by: Niclas Zeising <zeising@daemonic.se>
Acked-by: Owen W. Taylor <otaylor@fishsoup.net>
Acked-by: Peter Seiderer <ps.report@gmx.net>
Acked-by: Ran Benita <ran234@gmail.com>
Acked-by: Rosen Penev <rosenp@gmail.com>
Acked-by: Scott Jann <sjann@knight-rider.org>
Acked-by: Thilo Schulz <thilo@tjps.eu>
Acked-by: polyphemus <rolfmorel@gmail.com>
Peter Hutterer [Mon, 11 Jan 2021 03:07:47 +0000 (13:07 +1000)]
libevdev 1.10.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Thu, 7 Jan 2021 23:58:16 +0000 (09:58 +1000)]
doc: fix conflicting documentation for libevdev_get_event_value()
Yes, the value we return is from the currently active slot, but there are a
few niche cases where the active slot changes from what the client may think
it is. So let's call it undefined like the other half of the documentation
already does.
Fixes #20
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Mon, 4 Jan 2021 00:27:10 +0000 (10:27 +1000)]
gitlab CI: use Fedora 33 and Ubuntu 20.10
This requires latest CI templates for the mkosi changes. Since the start_vm.sh
script is now gone, switch to using vmctl instead.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Mon, 4 Jan 2021 00:45:41 +0000 (10:45 +1000)]
gitlab CI: make the custom build reference automated
We still require Fedora for the various jobs with custom autotools/meson
configurations. But we might as well make it dependent on the config file
entries only than hardcoding it.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Mon, 14 Dec 2020 00:00:42 +0000 (10:00 +1000)]
include: sync event codes with kernel 5.10
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Shuo Wang [Tue, 3 Nov 2020 06:42:25 +0000 (14:42 +0800)]
CODING_STYLE.md: fix a typo
Signed-off-by: Shuo Wang <wangshuo47@huawei.com>
Peter Hutterer [Sun, 25 Oct 2020 23:07:01 +0000 (09:07 +1000)]
libevdev 1.10.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Sun, 25 Oct 2020 23:06:09 +0000 (09:06 +1000)]
README: drop an obsolete paragraph
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Mon, 19 Oct 2020 23:34:05 +0000 (09:34 +1000)]
libevdev 1.10rc2
Scott Jann [Sat, 17 Oct 2020 08:03:17 +0000 (03:03 -0500)]
Add libevdev_disable_property
On some devices, a kernel input property has been set in error and we need the
ability to disable that property.
Signed-off-by: Scott Jann <sjann@knight-rider.org>
Nayan Deshmukh [Sat, 10 Oct 2020 03:58:22 +0000 (03:58 +0000)]
Add link to Rust bindings
Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
Peter Hutterer [Tue, 6 Oct 2020 00:19:50 +0000 (10:19 +1000)]
libevdev 1.10rc1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Mon, 5 Oct 2020 23:37:52 +0000 (09:37 +1000)]
tools: add a man page for the touchpad-edge-detector tool
Requires some .gitignore pattern removal too and an autotools fix to actually
dist the man pages.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Mon, 5 Oct 2020 23:39:41 +0000 (09:39 +1000)]
meson.build: install the libevdev-tweak-device man page
This got lost in meson conversion
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Niclas Zeising [Sat, 19 Sep 2020 10:11:54 +0000 (12:11 +0200)]
tools: Remove signalfd.h include again
Remove the includsion of sys/signalfd.h again, it hasn't been needed
since
cca90938 and was accidentally re-added, probably as a mismerge,
in
a40e014e.
Signed-off-by: Niclas Zeising <zeising@daemonic.se>
Peter Hutterer [Mon, 3 Aug 2020 05:46:39 +0000 (15:46 +1000)]
include: sync event codes with kernel 5.8
And fix the script to sync the headers up so it syncs event codes for both bsd
and linux, but only syncs input.h for linux.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Fri, 11 Sep 2020 01:56:01 +0000 (11:56 +1000)]
doc: fix doxyen complaints after
fd6c9b8ca0ec0791c
Fixes
fd6c9b8ca0ec0791c9aca11314bcb39f9c08555b
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Fri, 11 Sep 2020 00:49:52 +0000 (10:49 +1000)]
gitlab ci: run the qemu jobs on F32
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Fri, 11 Sep 2020 00:38:36 +0000 (10:38 +1000)]
gitlab CI: update to use F32
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Rosen Penev [Thu, 27 Aug 2020 07:42:20 +0000 (00:42 -0700)]
[clang-tidy] do not use else after return
Found with readability-else-after-return
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Rosen Penev [Tue, 28 Apr 2020 01:01:12 +0000 (18:01 -0700)]
libevdev: sort includes alphabetically
Found with clang-tidy's llvm-include-order
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Rosen Penev [Tue, 28 Apr 2020 00:19:30 +0000 (17:19 -0700)]
libevdev: remove pointless return in void function
Found with clang-tidy's readability-redundant-control-flow
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Rosen Penev [Tue, 28 Apr 2020 00:15:04 +0000 (17:15 -0700)]
libevdev: fix inconsistent declarations
Found with clang-tidy's readability-inconsistent-declaration-parameter-name
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Niclas Zeising [Tue, 11 Aug 2020 22:32:42 +0000 (00:32 +0200)]
Document FreeBSD quirks
Document FreeBSD quirks related to syspath.
Signed-off-by: Niclas Zeising <zeising@daemonic.se>
Niclas Zeising [Tue, 11 Aug 2020 21:50:53 +0000 (23:50 +0200)]
tests: Add FreeBSD specific tests
Add two FreeBSD specific tests:
test_uinput_check_devnode_bsd checks that libevdev_uinput_get_devnode()
returns something sensible. This is modelled on the Linux test
test_uinput_check_syspath_name, but uses devnode instead of syspath, since
reeBSD doesn't have sysfs.
test_uinput_check_syspath_bsd checks that libevdev_uinput_get_syspath()
always returns NULL.
Signed-off-by: Niclas Zeising <zeising@daemonic.se>
Niclas Zeising [Mon, 10 Aug 2020 21:24:34 +0000 (23:24 +0200)]
tests: Disable attach debugger on FreeBSD
Disable attaching a debugger on FreeBSD, since FreeBSD lacks support for
PTRACE_ATTACH.
Signed-off-by: Niclas Zeising <zeising@daemonic.se>
Niclas Zeising [Mon, 10 Aug 2020 21:20:13 +0000 (23:20 +0200)]
tests: disable force feedback events on FreeBSD
FreeBSD does not support force feedack events. Disable the test for
this event when running on FreeBSD.
Signed-off-by: Niclas Zeising <zeising@daemonic.se>
Niclas Zeising [Mon, 10 Aug 2020 21:16:08 +0000 (23:16 +0200)]
tests: Use CLOCK_MONOTONIC_FAST on FreeBSD
FreeBSD does not have CLOCK_MONOTONIC_RAW, instead use
CLOCK_MONOTONIC_FAST. This test checks that libevdev_set_clock_id()
fails when called with CLOCK_MONOTONIC_[RAW,FAST].
Signed-off-by: Niclas Zeising <zeising@daemonic.se>
Niclas Zeising [Thu, 13 Aug 2020 10:01:35 +0000 (12:01 +0200)]
uinput: Implement FreeBSD fetch_syspath_and_devnode()
Implement a FreeBSD version of fetch_syspath_and_devnode().
FreeBSD does not have sysfs, so instead fetch the device node directly
as as this matches with what is returned by the UI_GET_SYSNAME ioctl().
Since there is no sysfs, libevdev_uinput.syspath will always be set to NULL.
If the ioctl fail, return -1 from fetch_syspath_and_devnode(), since
there is no other way to figure out the device node path.
Signed-off-by: Niclas Zeising <zeising@daemonic.se>
Niclas Zeising [Thu, 13 Aug 2020 09:59:20 +0000 (11:59 +0200)]
uinput: Move SYS_INPUT_DIR to where it is used
Move the definition of SYS_INPUT_DIR to where it is used, instead of at
the top of the file, to make it easier to find.
Undefine it at the end of usage to avoid accidental uses.
Signed-off-by: Niclas Zeising <zeising@daemonic.se>
Niclas Zeising [Tue, 28 Jul 2020 16:22:08 +0000 (18:22 +0200)]
tools: use basename(argv[0]) for program name
Use baename(argv[0]) to get the program name (for usage), instead of
using program_invocation_short_name, which only exists on Linux, not
FreeBSD.
Signed-off-by: Niclas Zeising <zeising@daemonic.se>
Niclas Zeising [Mon, 27 Jul 2020 18:27:43 +0000 (20:27 +0200)]
tools: Remove signalfd() use
Remove signalfd() use from the mouse-dpi-tool and touchpad-edge-detector
tools, in favor of using plain old signals.
FreeBSD does not have signalfd() without pulling in external libraries,
and with this change these tools can be compiled on FreeBSD.
Instead of providing two implementations, one using signalfd() and one
using signal(), just use the signal() implementation everywhere as it is
more portable.
Signed-off-by: Niclas Zeising <zeising@daemonic.se>
Niclas Zeising [Sat, 25 Jul 2020 19:00:28 +0000 (21:00 +0200)]
Add FreeBSD compatible input.h and uinput.h
Add FreeBSD compatible input.h and uinput.h files.
This is done by moving the linux files to include/linux/linux, adding
the freebsd versions in include/linux/freebsd, and then changing
include/linux/[u]input.h to pull in the right one depending on which OS
we are compiling on.
Make sure that the build infrastructure in meson.build and
autoconf.ac/Makefile.am uses the correct files when building and as
dependency for targets, and ensure that make-event-names.py get the
correct files as arguments.
A similar change has been done in libinput in
61f3e3854458c556a01fb05d7abb22733fd2b7c1
Signed-off-by: Niclas Zeising <zeising@daemonic.se>
Niclas Zeising [Mon, 10 Aug 2020 20:47:09 +0000 (22:47 +0200)]
Don't hardcode /bin/bash
Don't hardcode /bin/bash, use /usr/bin/env bash instead, since not all
platforms install bash as /bin/bash.
FreeBSD, as an example, installs bash in /usr/local/bin/bash by default.
Signed-off-by: Niclas Zeising <zeising@daemonic.se>
Peter Hutterer [Thu, 16 Jul 2020 03:39:45 +0000 (13:39 +1000)]
libevdev 1.9.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Wed, 15 Jul 2020 03:32:40 +0000 (13:32 +1000)]
libevdev: any value less than 0 has a NULL name
Fixes https://gitlab.freedesktop.org/libevdev/libevdev/-/issues/15
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Tue, 30 Jun 2020 00:51:11 +0000 (10:51 +1000)]
gitlab CI: move MR check to a later stage
This gives the developer enough time to file an MR after pushing a branch.
Having this run in the first stage means we get false positives because no MR
has been filed yet when the job is run.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Tue, 16 Jun 2020 06:16:11 +0000 (16:16 +1000)]
gitlab CI: fix the repo name for excluding checks on master
Fixes
2698867311db78a7190bba1a20f0f27cfa04ffad
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Mon, 15 Jun 2020 23:58:40 +0000 (09:58 +1000)]
gitlab CI: use ci-fairy to check commits and merge requests
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Thu, 4 Jun 2020 02:55:19 +0000 (12:55 +1000)]
include: sync event codes with kernel 5.7
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Thu, 4 Jun 2020 00:48:04 +0000 (10:48 +1000)]
gitlab CI: move the pip dependencies to before_script
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Thu, 4 Jun 2020 00:47:35 +0000 (10:47 +1000)]
gitlab CI: alpine needs pip explicitly installed now
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Peter Hutterer [Tue, 2 Jun 2020 01:10:53 +0000 (11:10 +1000)]
Add a CODING_STYLE document
Copied from libinput with a few minor changes.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
George Thomas [Mon, 1 Jun 2020 14:28:01 +0000 (14:28 +0000)]
Add link to Haskell bindings
Signed-off-by: George Thomas <georgefsthomas@gmail.com>