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/multi/backend.c | |
parent | 566c98846a92300d29e9fb4b408fd7e51898d42c (diff) | |
parent | 86269052eb7be715eba274dffc30c77c11b8309c (diff) |
Merge pull request #647 from ascent12/elf_visibility
ELF Visibility
Diffstat (limited to 'backend/multi/backend.c')
-rw-r--r-- | backend/multi/backend.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backend/multi/backend.c b/backend/multi/backend.c index 5cb3fbc5..a1ff288b 100644 --- a/backend/multi/backend.c +++ b/backend/multi/backend.c @@ -6,6 +6,7 @@ #include <wlr/util/log.h> #include "backend/drm/drm.h" #include "backend/multi.h" +#include "util/defs.h" #include "util/signal.h" struct subbackend_state { @@ -90,6 +91,7 @@ static void handle_display_destroy(struct wl_listener *listener, void *data) { multi_backend_destroy((struct wlr_backend*)backend); } +WLR_API struct wlr_backend *wlr_multi_backend_create(struct wl_display *display) { struct wlr_multi_backend *backend = calloc(1, sizeof(struct wlr_multi_backend)); @@ -110,6 +112,7 @@ struct wlr_backend *wlr_multi_backend_create(struct wl_display *display) { return &backend->backend; } +WLR_API bool wlr_backend_is_multi(struct wlr_backend *b) { return b->impl == &backend_impl; } @@ -143,6 +146,7 @@ static struct subbackend_state *multi_backend_get_subbackend(struct wlr_multi_ba return NULL; } +WLR_API void wlr_multi_backend_add(struct wlr_backend *_multi, struct wlr_backend *backend) { assert(wlr_backend_is_multi(_multi)); @@ -175,6 +179,7 @@ void wlr_multi_backend_add(struct wlr_backend *_multi, wlr_signal_emit_safe(&multi->events.backend_add, backend); } +WLR_API void wlr_multi_backend_remove(struct wlr_backend *_multi, struct wlr_backend *backend) { assert(wlr_backend_is_multi(_multi)); @@ -189,6 +194,7 @@ void wlr_multi_backend_remove(struct wlr_backend *_multi, } } +WLR_API struct wlr_session *wlr_multi_get_session(struct wlr_backend *_backend) { assert(wlr_backend_is_multi(_backend)); @@ -202,6 +208,7 @@ struct wlr_session *wlr_multi_get_session(struct wlr_backend *_backend) { return NULL; } +WLR_API bool wlr_multi_is_empty(struct wlr_backend *_backend) { assert(wlr_backend_is_multi(_backend)); struct wlr_multi_backend *backend = (struct wlr_multi_backend *)_backend; |