Skip to content
Commit 84c10124 authored by Philipp Zabel's avatar Philipp Zabel Committed by Philipp Zabel
Browse files

compositor: support loading backend via shortened name



While the --backend parameter looks like it takes a file name, it really
is selected from a list of supported strings that are then funneled
through a translation to enum weston_compositor_backend [1].

Because all backend parameters are of the form "...-backend.so", and
writing "--backend=...-backend.so" is boring, allow the --backend option
to match the backend name without "-backend.so" suffix instead.

For example, this allows to use "--backend=headless" instead of
"--backend=headless-backend.so".

Update help text and documentation. Keep the old way working for
backwards compatibility.

[1] 50dbf385 ("libweston: use enum to choose the backend")

Signed-off-by: Philipp Zabel's avatarPhilipp Zabel <philipp.zabel@gmail.com>
parent 06eb28ba
Loading
Loading
Loading
Pipeline #758495 passed with stages
in 3 minutes and 12 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment