From 86269052eb7be715eba274dffc30c77c11b8309c Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Mon, 19 Feb 2018 14:26:40 +1300 Subject: Explicitly export EFL symbols --- backend/drm/backend.c | 3 +++ backend/drm/drm.c | 2 ++ 2 files changed, 5 insertions(+) (limited to 'backend/drm') diff --git a/backend/drm/backend.c b/backend/drm/backend.c index 47dff227..571c5c9d 100644 --- a/backend/drm/backend.c +++ b/backend/drm/backend.c @@ -13,6 +13,7 @@ #include #include #include "backend/drm/drm.h" +#include "util/defs.h" #include "util/signal.h" static bool wlr_drm_backend_start(struct wlr_backend *backend) { @@ -66,6 +67,7 @@ static struct wlr_backend_impl backend_impl = { .get_renderer = wlr_drm_backend_get_renderer, }; +WLR_API bool wlr_backend_is_drm(struct wlr_backend *b) { return b->impl == &backend_impl; } @@ -117,6 +119,7 @@ static void handle_display_destroy(struct wl_listener *listener, void *data) { wlr_drm_backend_destroy(&drm->backend); } +WLR_API struct wlr_backend *wlr_drm_backend_create(struct wl_display *display, struct wlr_session *session, int gpu_fd, struct wlr_backend *parent) { assert(display && session && gpu_fd >= 0); diff --git a/backend/drm/drm.c b/backend/drm/drm.c index e60b7e1c..493ef1f5 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -24,6 +24,7 @@ #include "backend/drm/drm.h" #include "backend/drm/iface.h" #include "backend/drm/util.h" +#include "util/defs.h" #include "util/signal.h" bool wlr_drm_check_features(struct wlr_drm_backend *drm) { @@ -728,6 +729,7 @@ static struct wlr_output_impl output_impl = { .get_gamma_size = wlr_drm_connector_get_gamma_size, }; +WLR_API bool wlr_output_is_drm(struct wlr_output *output) { return output->impl == &output_impl; } -- cgit v1.2.3