aboutsummaryrefslogtreecommitdiff
path: root/include/backend/drm
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-07-28 10:38:21 +0200
committerSimon Zeni <simon@bl4ckb0ne.ca>2022-08-10 14:19:58 +0000
commitf24409468213d363bcc7dca3130c78619ee1a138 (patch)
tree3f540f799501b674a50b1e0169f44346f2c2ede8 /include/backend/drm
parent08973d24304807a91634765103ec488743881e80 (diff)
backend/drm: drop enum wlr_drm_connector_status
We can just use libdrm's drmModeConnection enum instead.
Diffstat (limited to 'include/backend/drm')
-rw-r--r--include/backend/drm/drm.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h
index 8ab0c279..f362f18a 100644
--- a/include/backend/drm/drm.h
+++ b/include/backend/drm/drm.h
@@ -90,12 +90,6 @@ struct wlr_drm_backend {
struct wlr_drm_format_set mgpu_formats;
};
-enum wlr_drm_connector_status {
- // Connector is available but no output is plugged in
- WLR_DRM_CONN_DISCONNECTED,
- WLR_DRM_CONN_CONNECTED,
-};
-
struct wlr_drm_mode {
struct wlr_output_mode wlr_mode;
drmModeModeInfo drm_mode;
@@ -113,7 +107,7 @@ struct wlr_drm_connector {
struct wlr_drm_backend *backend;
char name[24];
- enum wlr_drm_connector_status status;
+ drmModeConnection status;
bool desired_enabled;
uint32_t id;
uint64_t max_bpc;