compositor,main: use weston_compositor_load_backend()
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 3 Jun 2016 11:49:54 +0000 (14:49 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 6 Jun 2016 12:22:23 +0000 (15:22 +0300)
commitdd18673db28a308cd585bb9d6ca6d1c12feb3a88
tree487af76effbe95fd360881bed82facc52def087b
parent808b00623110ddf83fa488dea7e21e655f606d6b
compositor,main: use weston_compositor_load_backend()

Move load_backend_new() from main.c to weston_compositor_load_backend()
in compositor.c.

This makes libweston load its own backends without leaking the details
to the user.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Reviewed-by: Giulio Camuffo <giuliocamuffo@gmail.com>
src/compositor.c
src/compositor.h
src/main.c