mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
conf-parser: add support for .d directories
This allows a configuration scheme where after loading configuration from "somefile", the parser loads configuration from files in directory "somefile.d". This feature needs to be enabled on a per-file basis, though, and this patch doesn't yet enable the feature for any files.
This commit is contained in:
parent
d97460045c
commit
1d7ce90139
6 changed files with 52 additions and 8 deletions
|
|
@ -2594,7 +2594,7 @@ pa_alsa_path* pa_alsa_path_new(const char *paths_dir, const char *fname, pa_alsa
|
|||
|
||||
fn = pa_maybe_prefix_path(fname, paths_dir);
|
||||
|
||||
r = pa_config_parse(fn, NULL, items, p->proplist, p);
|
||||
r = pa_config_parse(fn, NULL, items, p->proplist, false, p);
|
||||
pa_xfree(fn);
|
||||
|
||||
if (r < 0)
|
||||
|
|
@ -4411,7 +4411,7 @@ pa_alsa_profile_set* pa_alsa_profile_set_new(const char *fname, const pa_channel
|
|||
pa_run_from_build_tree() ? PA_SRCDIR "/modules/alsa/mixer/profile-sets/" :
|
||||
PA_ALSA_PROFILE_SETS_DIR);
|
||||
|
||||
r = pa_config_parse(fn, NULL, items, NULL, ps);
|
||||
r = pa_config_parse(fn, NULL, items, NULL, false, ps);
|
||||
pa_xfree(fn);
|
||||
|
||||
if (r < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue