x11: port the x11 backend to the new init api

Graphics / Wayland / Weston - Benoit Gschwind [gnu-log.net] - 3 May 2016 03:24 UTC

Use a "well" defined structure to configure x11-backend and move configuration file parsing inside the weston compositor code.

Enforce destruction of all backend config objects after initialization. Since the backend config struct versioning implies that there we expect potential future descrepancy between main's definition of the config object and the backend's, don't allow the backend to hang onto the config object outside the initialization scope.

e16acab x11: port the x11 backend to the new init api
Makefile.am | 3 +
src/compositor-x11.c | 158 ++++++++++++++++++--------------------------------
src/compositor-x11.h | 62 ++++++++++++++++++++
src/main.c | 145 ++++++++++++++++++++++++++++++++++++++++++++-
4 files changed, 264 insertions(+), 104 deletions(-)

Upstream: cgit.freedesktop.org


  • Share