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/backend.c | |
parent | 566c98846a92300d29e9fb4b408fd7e51898d42c (diff) | |
parent | 86269052eb7be715eba274dffc30c77c11b8309c (diff) |
Merge pull request #647 from ascent12/elf_visibility
ELF Visibility
Diffstat (limited to 'backend/headless/backend.c')
-rw-r--r-- | backend/headless/backend.c | 3 |
1 files changed, 3 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; } |