compositor: add API to manage compositor instances

Graphics / Wayland / Weston - Giulio Camuffo [gmail.com] - 10 July 2015 03:59 UTC

This commit adds three new exported functions:- weston_compositor_create() returns a new weston_compositor instance, initializing it as the now removed weston_compositor_init() did.- weston_compositor_exit(compositor) asks the compositor to tear down by calling the compositor's exit vfunc which is set by the libweston application.- weston_compositor_destroy(compositor) is called by the libweston application when tearing down the compositor. The compositor is destroyed and the memory freed.

459137b compositor: add API to manage compositor instances
src/compositor-drm.c | 8 +--
src/compositor-fbdev.c | 6 --
src/compositor-headless.c | 9 +--
src/compositor-rdp.c | 4 --
src/compositor-rpi.c | 11 +--
src/compositor-wayland.c | 9 +--
src/compositor-x11.c | 5 +-
src/compositor.c | 167 ++++++++++++++++++++++++++++++++-------------
src/compositor.h | 14 +++-
9 files changed, 139 insertions(+), 94 deletions(-)

Upstream: cgit.freedesktop.org


  • Share