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 <p.zabel@pengutronix.de>
This commit is contained in:
Philipp Zabel 2021-03-29 14:05:23 +02:00 committed by Pekka Paalanen
parent 982e59a942
commit 54d7682ee8

View File

@ -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