scripts: use WpConf API to get configuration values

This patch also moves nested configuration objects that are not considered
settings from the wireplumber.settings section to its own configuration
section (eg the rules array, the spa plugin properties, etc...). This allows
those objects to be merged with other same sections defined in other files.
This commit is contained in:
Julian Bouzas
2023-01-10 09:11:15 -05:00
parent 6c6d5eccf9
commit 360e0b3eaf
27 changed files with 594 additions and 1587 deletions

View File

@@ -51,7 +51,7 @@ cutils.default_metadata_om = ObjectManager {
}
function cutils.evaluateRulesApplyProperties (properties, name)
local matched, mprops = Settings.apply_rule (name, properties)
local matched, mprops = Conf.apply_rules (name, properties)
if (matched and mprops) then
for k, v in pairs (mprops) do