]> git.alsa-project.org Git - alsa-lib.git/commit
ucm: add If.Condition.String to match strings and substrings
authorJaroslav Kysela <perex@perex.cz>
Wed, 6 Nov 2019 08:51:47 +0000 (09:51 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 14 Nov 2019 14:00:40 +0000 (15:00 +0100)
commitb7d74c6977000a4f9bda3d3d73b25e4575d9a68d
tree9a292185df4ca297a69dfd160072970039385375
parentcd4b07ffbdd4612989e63800528b18efe0039ad9
ucm: add If.Condition.String to match strings and substrings

Case insensitive string match:

If.1 {
Condition {
Type String
String1 "aa"
String2 "bb"
}
True {
...
}
}

Substring is present (case sensitive):

If.1 {
Condition {
Type String
Haystack "White Horse"
Needle "Horse"
}
True {
...
}
}

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