xwayland: make the plugin usable by libweston compositors
authorGiulio Camuffo <giuliocamuffo@gmail.com>
Wed, 29 Jun 2016 09:54:27 +0000 (11:54 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 1 Jul 2016 11:34:33 +0000 (14:34 +0300)
commit9c764df043a100d56e840f9ee2aaa35e9e413b33
tree17d6a2446ea20a0b4775062fe5dce4a8b1e8f0f4
parent827b5d225de14f0c54b77040671370bb09d0fa0a
xwayland: make the plugin usable by libweston compositors

This patch follows a similar approach taken to detach the backends from
weston. But instead of passing a configuration struct when loading the
plugin, we use the plugin API registry to register an API, and to get it
in the compositor side.  This API allows to spawn the Xwayland process
in the compositor side, and to deal with signal handling.  A new
function is added in compositor.c to load and init the xwayland.so
plugin.

Also make sure to re-arm the SIGUSR1 when the X server quits.

Signed-off-by: Giulio Camuffo <giuliocamuffo@gmail.com>
[Pekka: moved xwayland/weston-xwayland.c -> compositor/xwayland.c]
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Makefile.am
compositor/main.c
compositor/weston.h
compositor/xwayland.c [new file with mode: 0644]
libweston/compositor.c
libweston/compositor.h
xwayland/launcher.c
xwayland/xwayland-api.h [new file with mode: 0644]
xwayland/xwayland.h