diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-08-30 18:51:57 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-08-30 18:51:57 -0700 |
commit | 9400a8491265b984c14469e1d711f3737748637d (patch) | |
tree | 9c14c24420406c4725b54eebbc5ff986eec3ccbe /src/modules/plato | |
parent | c91c9e5eeae06a7cbed94354d62c1281dc356407 (diff) |
til_settings: add get_setting_by_{idx,key}() variants
Currently everything wanting to get a settings value goes through
til_settings_get_value_by_{idx,key}() functions which return the
value rather than the setting directly to the callers.
This was a convenient thing initially, but it's becoming apparent
that most of the setup_funcs using these actually need the
til_setting_t* for improved error handling in the res_setup
baking phase.
So this commit basically just converts the existing functions
into bare til_setting_t* returns, leaving the existing get_value
variants as helper wrappers around them.
Subsequent commits will rework the myriad setup_funcs to use the
new variants, eventually letting setup front-ends like
setup_interactively() to make use of the res_setting on res_setup
baking failures too.
For now both variants will coexist, during the reworking. The
get_value variants may go away at some point if nothing is making
use of them.
Diffstat (limited to 'src/modules/plato')
0 files changed, 0 insertions, 0 deletions