aboutsummaryrefslogtreecommitdiff
path: root/include/backend/udev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/backend/udev.h')
-rw-r--r--include/backend/udev.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/backend/udev.h b/include/backend/udev.h
new file mode 100644
index 00000000..c5064279
--- /dev/null
+++ b/include/backend/udev.h
@@ -0,0 +1,19 @@
+#ifndef _WLR_INTERNAL_UDEV_H
+#define _WLR_INTERNAL_UDEV_H
+
+#include <libudev.h>
+#include <wlr/session.h>
+#include <wayland-server.h>
+#include <wlr/backend/udev.h>
+
+struct wlr_udev {
+ struct udev *udev;
+ struct udev_monitor *mon;
+ char *drm_path;
+ struct wl_event_source *event;
+ struct wl_signal invalidate_drm;
+};
+
+int wlr_udev_find_gpu(struct wlr_udev *udev, struct wlr_session *session);
+
+#endif