diff options
author | Scott Anderson <ascent12@hotmail.com> | 2017-05-01 15:33:42 +1200 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2017-05-01 15:33:42 +1200 |
commit | 95a553dc51029406f9b52227e88ebd9f67b203a5 (patch) | |
tree | f39ddd4fa44d2e76fd4ea931a67a4fb8f340f98f /include/backend/drm/event.h | |
parent | aca13320b3e6df8cb575f64db736dc38b8b30ed2 (diff) |
Moved headers to the correct place.
Diffstat (limited to 'include/backend/drm/event.h')
-rw-r--r-- | include/backend/drm/event.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/backend/drm/event.h b/include/backend/drm/event.h new file mode 100644 index 00000000..fc4f6f9a --- /dev/null +++ b/include/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 |