aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-08-13 17:13:12 -0400
committerGitHub <noreply@github.com>2017-08-13 17:13:12 -0400
commitf11b38f97ad7eee040339604100fe545cbf77bb5 (patch)
treeab910dbaac5467bce3e4d1715a1b21ed9c4d199a /include/wlr
parent41e735242dc8788618bb668ad70ea164e47099db (diff)
parentde66bdb8679de14377306b7a903f2bc5d62fd169 (diff)
Merge pull request #82 from 4e554c4c/detection
Add backend detection functions
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/backend/drm.h2
-rw-r--r--include/wlr/backend/libinput.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/wlr/backend/drm.h b/include/wlr/backend/drm.h
index 7332d608..fe1cc5a7 100644
--- a/include/wlr/backend/drm.h
+++ b/include/wlr/backend/drm.h
@@ -9,4 +9,6 @@
struct wlr_backend *wlr_drm_backend_create(struct wl_display *display,
struct wlr_session *session, struct wlr_udev *udev, int gpu_fd);
+bool wlr_backend_is_drm(struct wlr_backend *backend);
+
#endif
diff --git a/include/wlr/backend/libinput.h b/include/wlr/backend/libinput.h
index bba68888..b227a7ad 100644
--- a/include/wlr/backend/libinput.h
+++ b/include/wlr/backend/libinput.h
@@ -12,4 +12,6 @@ struct wlr_backend *wlr_libinput_backend_create(struct wl_display *display,
struct wlr_session *session, struct wlr_udev *udev);
struct libinput_device *wlr_libinput_get_device_handle(struct wlr_input_device *dev);
+bool wlr_backend_is_libinput(struct wlr_backend *backend);
+
#endif