aboutsummaryrefslogtreecommitdiff
path: root/backend/session
diff options
context:
space:
mode:
authorChris Chamberlain <chris@chamberlain.id.au>2021-12-10 21:14:57 +0100
committerSimon Ser <contact@emersion.fr>2021-12-13 14:55:16 +0100
commitd8ca4945581577f570c02ad46878571c48a08c79 (patch)
treed033761a9e3da63f504520923fd628eb77c7e44b /backend/session
parentf6d3efbf4b76a2100949fb0b88662a1324d4af54 (diff)
backend/drm: add wlr_drm_backend_monitor
This helper is responsible for listening for new DRM devices and create new child DRM backends as necessary.
Diffstat (limited to 'backend/session')
-rw-r--r--backend/session/session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/session/session.c b/backend/session/session.c
index e83a8b4c..7d6d080d 100644
--- a/backend/session/session.c
+++ b/backend/session/session.c
@@ -370,7 +370,7 @@ bool wlr_session_change_vt(struct wlr_session *session, unsigned vt) {
/* Tests if 'path' is KMS compatible by trying to open it. Returns the opened
* device on success. */
-static struct wlr_device *open_if_kms(struct wlr_session *restrict session,
+struct wlr_device *session_open_if_kms(struct wlr_session *restrict session,
const char *restrict path) {
if (!path) {
return NULL;
@@ -406,7 +406,7 @@ static ssize_t explicit_find_gpus(struct wlr_session *session,
break;
}
- ret[i] = open_if_kms(session, ptr);
+ ret[i] = session_open_if_kms(session, ptr);
if (!ret[i]) {
wlr_log(WLR_ERROR, "Unable to open %s as DRM device", ptr);
} else {
@@ -542,7 +542,7 @@ ssize_t wlr_session_find_gpus(struct wlr_session *session,
}
struct wlr_device *wlr_dev =
- open_if_kms(session, udev_device_get_devnode(dev));
+ session_open_if_kms(session, udev_device_get_devnode(dev));
if (!wlr_dev) {
udev_device_unref(dev);
continue;