]> git.alsa-project.org Git - alsa-lib.git/commit
ucm: add Path condition type
authorJaroslav Kysela <perex@perex.cz>
Tue, 23 Mar 2021 15:53:03 +0000 (16:53 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 23 Mar 2021 16:16:14 +0000 (17:16 +0100)
commit2f57b404b1c1c376316ca0c6bb5e789e2066298f
tree21239c63765f8a4c6960d42858444bb746229d0f
parent0afa61e8f089fb585fa41675f3ae209ec5969871
ucm: add Path condition type

Check for a file presence and mode.

Modes: exists, read, write, exec

Example:

If.0 {
Condition {
Type Path
Mode read
Path "/etc/alsa/something"
True {
...
}
}
}

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