aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-06-01 20:29:10 -0400
committerDrew DeVault <sir@cmpwn.com>2017-06-01 20:29:10 -0400
commit40b85d992a0a8dcdbff5305e232fbcd26d873148 (patch)
treed00984396a7f8080656636bf0cf38b8852cffa97 /include/wlr
parent62d612a01e10947db2c2047be528ed525e5f91be (diff)
Refactor udev and drm initialization
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/backend/drm.h3
-rw-r--r--include/wlr/backend/udev.h9
2 files changed, 11 insertions, 1 deletions
diff --git a/include/wlr/backend/drm.h b/include/wlr/backend/drm.h
index 2863f926..a486757d 100644
--- a/include/wlr/backend/drm.h
+++ b/include/wlr/backend/drm.h
@@ -4,8 +4,9 @@
#include <wayland-server.h>
#include <wlr/session.h>
#include <wlr/backend.h>
+#include <wlr/backend/udev.h>
struct wlr_backend *wlr_drm_backend_create(struct wl_display *display,
- struct wlr_session *session);
+ struct wlr_session *session, struct wlr_udev *udev, int gpu_fd);
#endif
diff --git a/include/wlr/backend/udev.h b/include/wlr/backend/udev.h
new file mode 100644
index 00000000..387a63e6
--- /dev/null
+++ b/include/wlr/backend/udev.h
@@ -0,0 +1,9 @@
+#ifndef _WLR_BACKEND_UDEV_H
+#define _WLR_BACKEND_UDEV_H
+
+struct wlr_udev;
+
+struct wlr_udev *wlr_udev_create(struct wl_display *display);
+void wlr_udev_destroy(struct wlr_udev *udev);
+
+#endif