From 199860a007e772c572b0adc4774dbe57feb398b4 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 7 Jan 2021 02:56:19 +0100 Subject: [PATCH] Fix tests build, provide mocks for libinput functions --- autotests/libinput/mock_libinput.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/autotests/libinput/mock_libinput.cpp b/autotests/libinput/mock_libinput.cpp index 6c69227330..f4a5ff85b7 100644 --- a/autotests/libinput/mock_libinput.cpp +++ b/autotests/libinput/mock_libinput.cpp @@ -922,3 +922,17 @@ libinput_device_tablet_pad_get_num_buttons(struct libinput_device *device) { return device->buttonCount; } + +struct libinput_device_group * +libinput_device_get_device_group(struct libinput_device *device) +{ + Q_UNUSED(device); + return nullptr; +} + +void * +libinput_device_group_get_user_data(struct libinput_device_group *group) +{ + Q_UNUSED(group); + return nullptr; +}