aboutsummaryrefslogtreecommitdiff
path: root/backend/x11
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-02-18 21:49:23 -0500
committerGitHub <noreply@github.com>2018-02-18 21:49:23 -0500
commit868ad5af69583646ba71d6e73e362818c7416941 (patch)
tree723b27e9b1fd24e85d9c44203f19364720510827 /backend/x11
parent566c98846a92300d29e9fb4b408fd7e51898d42c (diff)
parent86269052eb7be715eba274dffc30c77c11b8309c (diff)
Merge pull request #647 from ascent12/elf_visibility
ELF Visibility
Diffstat (limited to 'backend/x11')
-rw-r--r--backend/x11/backend.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/x11/backend.c b/backend/x11/backend.c
index 65eb0094..d0206976 100644
--- a/backend/x11/backend.c
+++ b/backend/x11/backend.c
@@ -23,6 +23,7 @@
#include <dev/evdev/input-event-codes.h>
#endif
#include "backend/x11.h"
+#include "util/defs.h"
#include "util/signal.h"
static struct wlr_backend_impl backend_impl;
@@ -299,6 +300,7 @@ static struct wlr_backend_impl backend_impl = {
.get_renderer = wlr_x11_backend_get_renderer,
};
+WLR_API
bool wlr_backend_is_x11(struct wlr_backend *backend) {
return backend->impl == &backend_impl;
}
@@ -309,6 +311,7 @@ static void handle_display_destroy(struct wl_listener *listener, void *data) {
wlr_x11_backend_destroy(&x11->backend);
}
+WLR_API
struct wlr_backend *wlr_x11_backend_create(struct wl_display *display,
const char *x11_display) {
struct wlr_x11_backend *x11 = calloc(1, sizeof(*x11));
@@ -428,10 +431,12 @@ static struct wlr_output_impl output_impl = {
.swap_buffers = output_swap_buffers,
};
+WLR_API
bool wlr_output_is_x11(struct wlr_output *wlr_output) {
return wlr_output->impl == &output_impl;
}
+WLR_API
bool wlr_input_device_is_x11(struct wlr_input_device *wlr_dev) {
return wlr_dev->impl == &input_device_impl;
}