diff options
author | Scott Anderson <ascent12@hotmail.com> | 2017-05-03 21:28:44 +1200 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2017-05-03 21:28:44 +1200 |
commit | d196a79b6c493d74d0057d74238353180d717255 (patch) | |
tree | 73e8cbe15779fa3b6a230750e04e0f7c252bb539 /include/backend/drm/udev.h | |
parent | 0002b8dd08fdab7da12127ad2f43238f376b1a7a (diff) |
Changed backend to accept wl_display.
Diffstat (limited to 'include/backend/drm/udev.h')
-rw-r--r-- | include/backend/drm/udev.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/backend/drm/udev.h b/include/backend/drm/udev.h index a09ee218..99c2c403 100644 --- a/include/backend/drm/udev.h +++ b/include/backend/drm/udev.h @@ -4,15 +4,18 @@ #include <libudev.h> #include <wlr/session.h> +#include <wayland-server.h> struct wlr_udev { struct udev *udev; struct udev_monitor *mon; char *drm_path; + + struct wl_event_source *event; }; struct wlr_drm_backend; -bool wlr_udev_init(struct wlr_drm_backend *backend); +bool wlr_udev_init(struct wl_display *display, struct wlr_udev *udev); void wlr_udev_free(struct wlr_udev *udev); int wlr_udev_find_gpu(struct wlr_udev *udev, struct wlr_session *session); |