From 54d7682ee844e8bdb2fe9fe9ad445eab30a82999 Mon Sep 17 00:00:00 2001 From: Philipp Zabel Date: Mon, 29 Mar 2021 14:05:23 +0200 Subject: [PATCH] libweston: add opaque backend_id pointer to struct weston_head As a first step towards heterogeneous outputs, add an opaque pointer weston_head::backend_id that will be used by backends to identify their own heads. See: https://gitlab.freedesktop.org/wayland/weston/-/issues/268 Signed-off-by: Philipp Zabel --- include/libweston/libweston.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/libweston/libweston.h b/include/libweston/libweston.h index c361d76a..c5f6f8cd 100644 --- a/include/libweston/libweston.h +++ b/include/libweston/libweston.h @@ -395,6 +395,9 @@ struct weston_head { /** Current content protection status */ enum weston_hdcp_protection current_protection; + + /** Opaque pointer used by backends to identify heads as theirs */ + const void *backend_id; }; /** Output properties derived from its color characteristics and profile