diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-11-22 11:39:00 -0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-11-22 13:49:15 -0800 |
commit | 873109595a411296505e91547bad0397ef65b7b3 (patch) | |
tree | 1753863758a55dc47e853acb4cc6051d7b5f556e /android | |
parent | 6ea642f6ef2e2d5486aec092a2596f24e60bca3e (diff) | |
download | bluez-873109595a411296505e91547bad0397ef65b7b3.tar.gz |
uinput: Remove local copy of uinput.h
uinput.h is part of kernel uapi nowadays so it can be included directly
from linux/uinput.h which has a compatible definition with 32 bits
systems:
https://github.com/bluez/bluez/issues/84#issuecomment-942155841
Fixes: https://github.com/bluez/bluez/issues/84
Diffstat (limited to 'android')
-rw-r--r-- | android/avctp.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/android/avctp.c b/android/avctp.c index c2ea5f4a2..14ebbc391 100644 --- a/android/avctp.c +++ b/android/avctp.c @@ -26,14 +26,12 @@ #include <sys/stat.h> #include <fcntl.h> #include <netinet/in.h> +#include <linux/uinput.h> #include <glib.h> #include "lib/sdp.h" - #include "src/log.h" -#include "src/uinput.h" - #include "avctp.h" /* @@ -259,7 +257,7 @@ static gboolean avctp_passthrough_rsp(struct avctp *session, uint8_t code, static int send_event(int fd, uint16_t type, uint16_t code, int32_t value) { - struct uinput_event event; + struct input_event event; int err; memset(&event, 0, sizeof(event)); @@ -1012,7 +1010,7 @@ failed: static int uinput_create(const char *name) { - struct uinput_dev dev; + struct uinput_user_dev dev; int fd, err, i; fd = open("/dev/uinput", O_RDWR); |