diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-08-13 17:13:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-13 17:13:12 -0400 |
commit | f11b38f97ad7eee040339604100fe545cbf77bb5 (patch) | |
tree | ab910dbaac5467bce3e4d1715a1b21ed9c4d199a /backend/drm | |
parent | 41e735242dc8788618bb668ad70ea164e47099db (diff) | |
parent | de66bdb8679de14377306b7a903f2bc5d62fd169 (diff) |
Merge pull request #82 from 4e554c4c/detection
Add backend detection functions
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/backend.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/drm/backend.c b/backend/drm/backend.c index a2c9dff3..a84130ee 100644 --- a/backend/drm/backend.c +++ b/backend/drm/backend.c @@ -52,6 +52,10 @@ static struct wlr_backend_impl backend_impl = { .get_egl = wlr_drm_backend_get_egl }; +bool wlr_backend_is_drm(struct wlr_backend *b) { + return b->impl == &backend_impl; +} + static void session_signal(struct wl_listener *listener, void *data) { struct wlr_drm_backend *backend = wl_container_of(listener, backend, session_signal); |