settings: remove _get_{boolean|int|float|string}() APIs

They is really no needed with the new _get() API and the WpSpaJson API. In C,
users can use 'wp_spa_json_parse_{boolean|int|float|string}()' APIs to parse the
WpSpaJson. In Lua, users can just do 'Settings.get(setting, m):parse()'.
This commit is contained in:
Julian Bouzas
2022-08-18 13:11:34 -04:00
parent 535af7a33e
commit 2f1aece8b6
16 changed files with 163 additions and 301 deletions

View File

@@ -16,7 +16,7 @@ function configProperties (node)
["item.node"] = node,
["item.plugged.usec"] = GLib.get_monotonic_time (),
["item.features.no-dsp"] =
Settings.get_boolean ("default-policy-audio.no-dsp"),
Settings.get ("default-policy-audio.no-dsp"):parse(),
["item.features.monitor"] = true,
["item.features.control-port"] = false,
["node.id"] = node ["bound-id"],