aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'backend/drm/event.h')
-rw-r--r--backend/drm/event.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/backend/drm/event.h b/backend/drm/event.h
new file mode 100644
index 00000000..fc4f6f9a
--- /dev/null
+++ b/backend/drm/event.h
@@ -0,0 +1,21 @@
+#ifndef EVENT_H
+#define EVENT_H
+
+#include <stdbool.h>
+
+enum otd_event_type {
+ OTD_EV_NONE,
+ OTD_EV_RENDER,
+ OTD_EV_DISPLAY_REM,
+ OTD_EV_DISPLAY_ADD,
+};
+
+struct otd_event {
+ enum otd_event_type type;
+ struct otd_display *display;
+};
+
+bool otd_get_event(struct otd *otd, struct otd_event *restrict ret);
+bool event_add(struct otd *otd, struct otd_display *disp, enum otd_event_type type);
+
+#endif