aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/backend/drm/drm.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h
index ea3cdbd4..9ee62ead 100644
--- a/include/backend/drm/drm.h
+++ b/include/backend/drm/drm.h
@@ -110,9 +110,10 @@ struct wlr_drm_mode {
};
struct wlr_drm_connector {
- struct wlr_output output;
+ struct wlr_output output; // only valid if state != DISCONNECTED
struct wlr_drm_backend *backend;
+ char name[24];
enum wlr_drm_connector_state state;
struct wlr_output_mode *desired_mode;
bool desired_enabled;
@@ -155,4 +156,9 @@ size_t drm_crtc_get_gamma_lut_size(struct wlr_drm_backend *drm,
struct wlr_drm_fb *plane_get_next_fb(struct wlr_drm_plane *plane);
+#define wlr_drm_conn_log(conn, verb, fmt, ...) \
+ wlr_log(verb, "connector %s: " fmt, conn->output.name, ##__VA_ARGS__)
+#define wlr_drm_conn_log_errno(conn, verb, fmt, ...) \
+ wlr_log_errno(verb, "connector %s: " fmt, conn->output.name, ##__VA_ARGS__)
+
#endif