diff options
author | Calvin Lee <cyrus296@gmail.com> | 2017-08-13 23:05:57 +0200 |
---|---|---|
committer | Calvin Lee <cyrus296@gmail.com> | 2017-08-13 23:08:33 +0200 |
commit | de66bdb8679de14377306b7a903f2bc5d62fd169 (patch) | |
tree | ab910dbaac5467bce3e4d1715a1b21ed9c4d199a /include/wlr/backend | |
parent | 41e735242dc8788618bb668ad70ea164e47099db (diff) |
Add backend detection functions
Resolves #80
Diffstat (limited to 'include/wlr/backend')
-rw-r--r-- | include/wlr/backend/drm.h | 2 | ||||
-rw-r--r-- | include/wlr/backend/libinput.h | 2 |
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 |