aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/backend
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-01-15 21:50:17 +0100
committerSimon Ser <contact@emersion.fr>2021-01-17 12:42:32 +0100
commitf17b0f975d271a2c001627fe47af9a5b8800c774 (patch)
tree33885c62026693b0e6a0316bd6fda57d388923a2 /include/wlr/backend
parentcb6f58449683f7b30a6a8718bac5475c39b291d8 (diff)
backend/drm: add wlr_drm_connector_get_id
This allows a compositor to get a KMS connector object ID from a wlr_output. The compositor can then query more information about the connector via libdrm. This gives more freedom to compositors and allows them to read KMS properties that wlroots doesn't know about. For instance, they could read the EDID or the suggested_{X,Y} properties and change their output configuration based on that.
Diffstat (limited to 'include/wlr/backend')
-rw-r--r--include/wlr/backend/drm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/wlr/backend/drm.h b/include/wlr/backend/drm.h
index 0a307166..baa03421 100644
--- a/include/wlr/backend/drm.h
+++ b/include/wlr/backend/drm.h
@@ -29,6 +29,11 @@ bool wlr_backend_is_drm(struct wlr_backend *backend);
bool wlr_output_is_drm(struct wlr_output *output);
/**
+ * Get the KMS connector object ID.
+ */
+uint32_t wlr_drm_connector_get_id(struct wlr_output *output);
+
+/**
* Add mode to the list of available modes
*/
typedef struct _drmModeModeInfo drmModeModeInfo;