From df373424c5d289484a7a328c7861c801e9d99143 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 18 Nov 2020 10:58:59 +0100 Subject: [PATCH] Document drmModeConnection Signed-off-by: Simon Ser --- xf86drmMode.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/xf86drmMode.h b/xf86drmMode.h index 54493205..90c3425a 100644 --- a/xf86drmMode.h +++ b/xf86drmMode.h @@ -289,6 +289,18 @@ typedef struct _drmModeEncoder { uint32_t possible_clones; } drmModeEncoder, *drmModeEncoderPtr; +/** + * Describes the connector status. + * + * DRM_MODE_CONNECTED means that the connector has a sink plugged in. + * DRM_MODE_DISCONNECTED means the contrary. DRM_MODE_UNKNOWNCONNECTION is used + * when it could be either. + * + * User-space should first try to enable DRM_MODE_CONNECTED connectors and + * ignore other connectors. If there are no DRM_MODE_CONNECTED connectors, + * user-space should then try to probe and enable DRM_MODE_UNKNOWNCONNECTION + * connectors. + */ typedef enum { DRM_MODE_CONNECTED = 1, DRM_MODE_DISCONNECTED = 2,