mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-08 08:08:03 +02:00
config: allow passing arguments to pipewire modules
Sometimes, it may be necessary to pass arguments in to a Pipewire module being loaded. Allow this to be done using the same format as load_module()/load_optional_module(). Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
This commit is contained in:
parent
7394f478d6
commit
3fa87510d1
1 changed files with 2 additions and 2 deletions
|
|
@ -14,10 +14,10 @@ function load_optional_module(m, a)
|
|||
end
|
||||
end
|
||||
|
||||
function load_pw_module(m)
|
||||
function load_pw_module(m, a)
|
||||
assert(type(m) == "string", "module name is mandatory, bail out");
|
||||
if not components[m] then
|
||||
components[m] = { "libpipewire-module-" .. m, type = "pw_module" }
|
||||
components[m] = { "libpipewire-module-" .. m, type = "pw_module", args = a }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue