From de66bdb8679de14377306b7a903f2bc5d62fd169 Mon Sep 17 00:00:00 2001 From: Calvin Lee Date: Sun, 13 Aug 2017 23:05:57 +0200 Subject: Add backend detection functions Resolves #80 --- include/wlr/backend/drm.h | 2 ++ include/wlr/backend/libinput.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'include/wlr/backend') 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 -- cgit v1.2.3