diff options
author | Scott Anderson <ascent12@hotmail.com> | 2018-02-19 14:26:40 +1300 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2018-02-19 14:26:40 +1300 |
commit | 86269052eb7be715eba274dffc30c77c11b8309c (patch) | |
tree | 8291d0ee15c75499ad884f629fd630c54f46b8ce /backend/headless | |
parent | f27c0b44b882f7a837906e5b3376ad035cb51445 (diff) |
Explicitly export EFL symbols
Diffstat (limited to 'backend/headless')
-rw-r--r-- | backend/headless/backend.c | 3 | ||||
-rw-r--r-- | backend/headless/input_device.c | 3 | ||||
-rw-r--r-- | backend/headless/output.c | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/backend/headless/backend.c b/backend/headless/backend.c index 663bc13b..49201192 100644 --- a/backend/headless/backend.c +++ b/backend/headless/backend.c @@ -7,6 +7,7 @@ #include <wlr/util/log.h> #include "backend/headless.h" #include "glapi.h" +#include "util/defs.h" static bool backend_start(struct wlr_backend *wlr_backend) { struct wlr_headless_backend *backend = @@ -84,6 +85,7 @@ static void handle_display_destroy(struct wl_listener *listener, void *data) { backend_destroy(&backend->backend); } +WLR_API struct wlr_backend *wlr_headless_backend_create(struct wl_display *display) { wlr_log(L_INFO, "Creating headless backend"); @@ -125,6 +127,7 @@ struct wlr_backend *wlr_headless_backend_create(struct wl_display *display) { return &backend->backend; } +WLR_API bool wlr_backend_is_headless(struct wlr_backend *backend) { return backend->impl == &backend_impl; } 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 = diff --git a/backend/headless/output.c b/backend/headless/output.c index ba4a094e..70182ea0 100644 --- a/backend/headless/output.c +++ b/backend/headless/output.c @@ -5,6 +5,7 @@ #include <wlr/interfaces/wlr_output.h> #include <wlr/util/log.h> #include "backend/headless.h" +#include "util/defs.h" #include "util/signal.h" static EGLSurface egl_create_surface(struct wlr_egl *egl, unsigned int width, @@ -79,6 +80,7 @@ static const struct wlr_output_impl output_impl = { .swap_buffers = output_swap_buffers, }; +WLR_API bool wlr_output_is_headless(struct wlr_output *wlr_output) { return wlr_output->impl == &output_impl; } @@ -90,6 +92,7 @@ static int signal_frame(void *data) { return 0; } +WLR_API struct wlr_output *wlr_headless_add_output(struct wlr_backend *wlr_backend, unsigned int width, unsigned int height) { struct wlr_headless_backend *backend = |