backend: move get_drm_fd to public interface

The get_drm_fd was made available in an internal header with a53ab146f. Move it
now to the public header so consumers opting in to the unstable interfaces can
make use of it.
This commit is contained in:
Roman Gilg 2021-04-12 10:39:51 +02:00 committed by Simon Ser
parent b29ac8fbac
commit b36af22c94
5 changed files with 10 additions and 14 deletions

View file

@ -6,7 +6,6 @@
#include <wlr/backend/interface.h>
#include <wlr/backend/session.h>
#include <wlr/util/log.h>
#include "backend/backend.h"
#include "backend/multi.h"
#include "util/signal.h"
@ -103,7 +102,7 @@ static int multi_backend_get_drm_fd(struct wlr_backend *backend) {
struct subbackend_state *sub;
wl_list_for_each(sub, &multi->backends, link) {
if (sub->backend->impl->get_drm_fd) {
return backend_get_drm_fd(sub->backend);
return wlr_backend_get_drm_fd(sub->backend);
}
}