aboutsummaryrefslogtreecommitdiff
path: root/include/backend
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-02-24 15:53:54 -0500
committerKirill Primak <vyivel@eclair.cafe>2022-03-02 18:18:05 +0000
commitd0718a9b32dc9d80b35eae269b60a22caa9c268f (patch)
treedaf847719d8a8a9be08430894410b18d4804c8cd /include/backend
parent0d21496e53e88a65347ae7ffab3d4a20403f838a (diff)
backend/libinput: public API cleanup
Diffstat (limited to 'include/backend')
-rw-r--r--include/backend/libinput.h19
1 files changed, 6 insertions, 13 deletions
diff --git a/include/backend/libinput.h b/include/backend/libinput.h
index 6579b1af..f22e7761 100644
--- a/include/backend/libinput.h
+++ b/include/backend/libinput.h
@@ -5,13 +5,12 @@
#include <wayland-server-core.h>
#include <wlr/backend/interface.h>
#include <wlr/backend/libinput.h>
-#include <wlr/interfaces/wlr_keyboard.h>
-#include <wlr/interfaces/wlr_pointer.h>
-#include <wlr/interfaces/wlr_switch.h>
-#include <wlr/interfaces/wlr_tablet_pad.h>
-#include <wlr/interfaces/wlr_tablet_tool.h>
-#include <wlr/interfaces/wlr_touch.h>
-#include <wlr/types/wlr_input_device.h>
+#include <wlr/types/wlr_keyboard.h>
+#include <wlr/types/wlr_pointer.h>
+#include <wlr/types/wlr_switch.h>
+#include <wlr/types/wlr_tablet_pad.h>
+#include <wlr/types/wlr_tablet_tool.h>
+#include <wlr/types/wlr_touch.h>
struct wlr_libinput_backend {
struct wlr_backend backend;
@@ -26,12 +25,10 @@ struct wlr_libinput_backend {
struct wl_listener session_destroy;
struct wl_listener session_signal;
- struct wl_array wlr_device_lists; // struct wl_list *
struct wl_list devices; // wlr_libinput_device::link
};
struct wlr_libinput_input_device {
- struct wlr_input_device wlr_input_device;
struct libinput_device *handle;
struct wlr_keyboard keyboard;
@@ -50,10 +47,6 @@ uint32_t usec_to_msec(uint64_t usec);
void handle_libinput_event(struct wlr_libinput_backend *state,
struct libinput_event *event);
-struct wlr_input_device *get_appropriate_device(
- enum wlr_input_device_type desired_type,
- struct libinput_device *device);
-
void destroy_libinput_input_device(struct wlr_libinput_input_device *dev);
extern const struct wlr_keyboard_impl libinput_keyboard_impl;