summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2021-03-16 16:28:20 +0100
committerDerek Foreman <derek.foreman@collabora.com>2023-09-28 14:02:04 +0000
commit20c5b4527ced5c258c48ceb8d4cff105227061b3 (patch)
tree8817fce0450dff5845352d9fb4fb8980a501c1d5 /include
parent3d50069afca53a61b3837812f76d9a1255e55437 (diff)
libweston: allow loading multiple backends
Before loading a backend, clear the weston_compositor::backend pointer to check whether the backend supports multi-backend operation and adds itself to the weston_compositor::backend_list. Keep weston_compositor::backend pointing to the last loaded backend either way, to allow the calling compositor code to store it away for later, to check whether a head belongs to a given backend in the output configuration code. This workaround can be removed after all backends are converted to be multi-backend aware. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/libweston/libweston.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libweston/libweston.h b/include/libweston/libweston.h
index 69481ed2..cc76eb68 100644
--- a/include/libweston/libweston.h
+++ b/include/libweston/libweston.h
@@ -1480,6 +1480,9 @@ struct weston_compositor {
/* Whether to let the compositor run without any input device. */
bool require_input;
+ /* Whether to load multiple backends. */
+ bool multi_backend;
+
/* Test suite data */
struct weston_testsuite_data test_data;