Add FreeBSD compatible input.h and uinput.h
authorNiclas Zeising <zeising@daemonic.se>
Sat, 25 Jul 2020 19:00:28 +0000 (21:00 +0200)
committerNiclas Zeising <zeising@daemonic.se>
Fri, 14 Aug 2020 15:50:56 +0000 (17:50 +0200)
commit7ce82709aa43e7a787dba95463e88662cb4688ce
tree7d8de4c6439aba264a0b4f1e19bf7ca4d64dbbdc
parentdb01b2d6062d4c28cd82a32f42e566d05480d06e
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>
configure.ac
include/linux/freebsd/input-event-codes.h [moved from include/linux/input-event-codes.h with 100% similarity]
include/linux/freebsd/input.h [new file with mode: 0644]
include/linux/freebsd/uinput.h [new file with mode: 0644]
include/linux/input.h
include/linux/linux/input-event-codes.h [new file with mode: 0644]
include/linux/linux/input.h [new file with mode: 0644]
include/linux/linux/uinput.h [new file with mode: 0644]
include/linux/uinput.h
libevdev/Makefile.am
meson.build