[PATCH weston 12/21] libweston: set backend pointer earlier
Ray, Ian (GE Healthcare)
ian.ray at ge.com
Tue Sep 26 06:19:41 UTC 2017
On 22/09/2017, 17.33, "wayland-devel on behalf of Pekka Paalanen" <wayland-devel-bounces at lists.freedesktop.org on behalf of ppaalanen at gmail.com> wrote:
> From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
> Change all backends to set the core backend pointer early.
> This is necessary for libweston core to be able to access the backend
> vfuncs before the backend init function returns. Particularly,
> weston_output_init() will be needing to inspect the backend vfuncs to
> see if the backend has been converted to a new API. Backends that create
> outputs as part of their init would fail without setting the pointer
> For consistency, all backends are modified instead of just those that
> could hit an issue.
> Libweston core will take care of resetting the backend pointer to NULL
> in case of error since "libweston: ensure backend is not loaded twice".
> Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
Reviewed-by: Ian Ray <ian.ray at ge.com>
More information about the wayland-devel