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>
dev
Philipp Zabel 4 years ago committed by Pekka Paalanen
parent 982e59a942
commit 54d7682ee8
  1. 3
      include/libweston/libweston.h

@ -395,6 +395,9 @@ struct weston_head {
/** Current content protection status */ /** Current content protection status */
enum weston_hdcp_protection current_protection; 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 /** Output properties derived from its color characteristics and profile

Loading…
Cancel
Save