aboutsummaryrefslogtreecommitdiff
path: root/include/backend/drm/udev.h
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2017-05-03 21:28:44 +1200
committerScott Anderson <ascent12@hotmail.com>2017-05-03 21:28:44 +1200
commitd196a79b6c493d74d0057d74238353180d717255 (patch)
tree73e8cbe15779fa3b6a230750e04e0f7c252bb539 /include/backend/drm/udev.h
parent0002b8dd08fdab7da12127ad2f43238f376b1a7a (diff)
Changed backend to accept wl_display.
Diffstat (limited to 'include/backend/drm/udev.h')
-rw-r--r--include/backend/drm/udev.h5
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);