diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-06-10 12:21:54 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-06-13 08:10:36 -0400 |
commit | 7a5f35b5bb2a30e46defe9ea1bd610cb06df95e8 (patch) | |
tree | 5d3f0990f8ce6c14f1421e2a292a47ee98e730a5 /include/wlr | |
parent | f479b7c8c7aa93229c46287f774a30ac8324da1e (diff) |
Reassign ownership of libinput handle
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/backend/libinput.h | 3 | ||||
-rw-r--r-- | include/wlr/types.h | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/wlr/backend/libinput.h b/include/wlr/backend/libinput.h index 1e8c3555..7108f42c 100644 --- a/include/wlr/backend/libinput.h +++ b/include/wlr/backend/libinput.h @@ -1,12 +1,15 @@ #ifndef WLR_BACKEND_LIBINPUT_H #define WLR_BACKEND_LIBINPUT_H +#include <libinput.h> #include <wayland-server.h> #include <wlr/session.h> #include <wlr/backend.h> #include <wlr/backend/udev.h> +#include <wlr/types.h> struct wlr_backend *wlr_libinput_backend_create(struct wl_display *display, struct wlr_session *session, struct wlr_udev *udev); +struct libinput_device *wlr_libinput_get_device_handle(struct wlr_input_device *dev); #endif diff --git a/include/wlr/types.h b/include/wlr/types.h index e2f3075f..389989e8 100644 --- a/include/wlr/types.h +++ b/include/wlr/types.h @@ -152,10 +152,17 @@ enum wlr_input_device_type { WLR_INPUT_DEVICE_SWITCH, }; +struct wlr_input_device_state; +struct wlr_input_device_impl; + struct wlr_input_device { + struct wlr_input_device_state *state; + struct wlr_input_device_impl *impl; + enum wlr_input_device_type type; int vendor, product; char *name; + union { void *_device; struct wlr_keyboard *keyboard; |