diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-02-18 21:49:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-18 21:49:23 -0500 |
commit | 868ad5af69583646ba71d6e73e362818c7416941 (patch) | |
tree | 723b27e9b1fd24e85d9c44203f19364720510827 /backend/headless/input_device.c | |
parent | 566c98846a92300d29e9fb4b408fd7e51898d42c (diff) | |
parent | 86269052eb7be715eba274dffc30c77c11b8309c (diff) |
Merge pull request #647 from ascent12/elf_visibility
ELF Visibility
Diffstat (limited to 'backend/headless/input_device.c')
-rw-r--r-- | backend/headless/input_device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/headless/input_device.c b/backend/headless/input_device.c index ea335aff..66946f77 100644 --- a/backend/headless/input_device.c +++ b/backend/headless/input_device.c @@ -7,6 +7,7 @@ #include <wlr/interfaces/wlr_touch.h> #include <wlr/util/log.h> #include "backend/headless.h" +#include "util/defs.h" #include "util/signal.h" static void input_device_destroy(struct wlr_input_device *wlr_dev) { @@ -19,10 +20,12 @@ static struct wlr_input_device_impl input_device_impl = { .destroy = input_device_destroy, }; +WLR_API bool wlr_input_device_is_headless(struct wlr_input_device *wlr_dev) { return wlr_dev->impl == &input_device_impl; } +WLR_API struct wlr_input_device *wlr_headless_add_input_device( struct wlr_backend *wlr_backend, enum wlr_input_device_type type) { struct wlr_headless_backend *backend = |