]> git.alsa-project.org Git - alsa-lib.git/commit
conf: load function (hook) - add OR support
authorJaroslav Kysela <perex@perex.cz>
Thu, 4 Jun 2020 15:28:25 +0000 (17:28 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 4 Jun 2020 15:32:47 +0000 (17:32 +0200)
commit1fa7d670f8f195e205d7f1a09a4c9a77c50b0064
tree0f484b0ba77628b054c7f946f69f9270cf80316b
parent4882da2c3e7f494e5e7f7339e337336b15bd8d0f
conf: load function (hook) - add OR support

While I was trying to work on XDG_CONFIG_HOME support, I though
that it may be nice to support OR for the file specification.

But then I found that we can already do this via the refer hook.

I commit this change anyway, because the snd_config_hook_load()
function is more clean now.

The OR is implemented with three | characters like:

  "~/.asoundrc|||~/.asoundrc2|||/opt/some/other/path"

(first file found wins)

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/conf.c