aboutsummaryrefslogtreecommitdiff
path: root/include/backend/drm.h
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2017-09-23 16:32:25 +1200
committerScott Anderson <ascent12@hotmail.com>2017-09-23 16:32:25 +1200
commit459d138fa2f8c0ad3665cbbb393c366b895a4cde (patch)
tree9c65724cdf3dc9c3894d0bed823312894b9354fe /include/backend/drm.h
parent8cbade355f197e919e7d392a06b9b2851bf847cc (diff)
Add timeout to DRM cleanup
This prevents a potential infinite loop preventing us from closing properly.
Diffstat (limited to 'include/backend/drm.h')
-rw-r--r--include/backend/drm.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/backend/drm.h b/include/backend/drm.h
index 342a980c..cc3e621b 100644
--- a/include/backend/drm.h
+++ b/include/backend/drm.h
@@ -127,6 +127,7 @@ struct wlr_drm_backend {
enum wlr_drm_output_state {
WLR_DRM_OUTPUT_DISCONNECTED,
WLR_DRM_OUTPUT_NEEDS_MODESET,
+ WLR_DRM_OUTPUT_CLEANUP,
WLR_DRM_OUTPUT_CONNECTED,
};
@@ -176,8 +177,8 @@ struct wlr_drm_interface {
bool wlr_drm_check_features(struct wlr_drm_backend *drm);
bool wlr_drm_resources_init(struct wlr_drm_backend *drm);
void wlr_drm_resources_free(struct wlr_drm_backend *drm);
-void wlr_drm_output_cleanup(struct wlr_drm_output *output, bool restore);
-
+void wlr_drm_restore_outputs(struct wlr_drm_backend *drm);
+void wlr_drm_output_cleanup(struct wlr_drm_output *output);
void wlr_drm_scan_connectors(struct wlr_drm_backend *state);
int wlr_drm_event(int fd, uint32_t mask, void *data);