aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/backend/drm.h14
-rw-r--r--include/wlr/types/wlr_output.h3
2 files changed, 17 insertions, 0 deletions
diff --git a/include/wlr/backend/drm.h b/include/wlr/backend/drm.h
index baa03421..c5351d65 100644
--- a/include/wlr/backend/drm.h
+++ b/include/wlr/backend/drm.h
@@ -34,6 +34,20 @@ bool wlr_output_is_drm(struct wlr_output *output);
uint32_t wlr_drm_connector_get_id(struct wlr_output *output);
/**
+ * Leases a given output to the caller. The output must be from the associated
+ * DRM backend.
+ * Returns a valid opened DRM FD or -1 on error.
+ */
+int wlr_drm_create_lease(struct wlr_output **outputs, size_t n_outputs,
+ uint32_t *lessee_id);
+
+/**
+ * Terminates a given lease. The output will be owned again by the backend
+ */
+bool wlr_drm_backend_terminate_lease(struct wlr_backend *backend,
+ uint32_t lessee_id);
+
+/**
* Add mode to the list of available modes
*/
typedef struct _drmModeModeInfo drmModeModeInfo;
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h
index 8363261d..5ef5a485 100644
--- a/include/wlr/types/wlr_output.h
+++ b/include/wlr/types/wlr_output.h
@@ -141,6 +141,9 @@ struct wlr_output {
bool frame_pending;
float transform_matrix[9];
+ // true for example with VR headsets
+ bool non_desktop;
+
struct wlr_output_state pending;
// Commit sequence number. Incremented on each commit, may overflow.