summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-11-22 11:39:00 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-11-22 13:49:15 -0800
commit873109595a411296505e91547bad0397ef65b7b3 (patch)
tree1753863758a55dc47e853acb4cc6051d7b5f556e /profiles
parent6ea642f6ef2e2d5486aec092a2596f24e60bca3e (diff)
downloadbluez-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 'profiles')
-rw-r--r--profiles/audio/avctp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c
index 72509edec..9113b5ddc 100644
--- a/profiles/audio/avctp.c
+++ b/profiles/audio/avctp.c
@@ -25,6 +25,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <netinet/in.h>
+#include <linux/uinput.h>
#include <glib.h>
@@ -38,7 +39,6 @@
#include "src/device.h"
#include "src/log.h"
#include "src/error.h"
-#include "src/uinput.h"
#include "src/shared/timeout.h"
#include "avctp.h"
@@ -302,7 +302,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;
memset(&event, 0, sizeof(event));
event.type = type;
@@ -1156,7 +1156,7 @@ failed:
static int uinput_create(struct btd_device *device, const char *name,
const char *suffix)
{
- struct uinput_dev dev;
+ struct uinput_user_dev dev;
int fd, err, i;
char src[18];