libweston: set backend pointer earlier
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
earlier.
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@collabora.co.uk>
Showing
- libweston/compositor-drm.c 2 additions, 2 deletionslibweston/compositor-drm.c
- libweston/compositor-fbdev.c 1 addition, 1 deletionlibweston/compositor-fbdev.c
- libweston/compositor-headless.c 2 additions, 2 deletionslibweston/compositor-headless.c
- libweston/compositor-rdp.c 2 additions, 2 deletionslibweston/compositor-rdp.c
- libweston/compositor-wayland.c 2 additions, 1 deletionlibweston/compositor-wayland.c
- libweston/compositor-x11.c 2 additions, 2 deletionslibweston/compositor-x11.c
Loading
Please register or sign in to comment