]> git.alsa-project.org Git - alsa-utils.git/commit
topology: pre-process-class: Add functions to check attribute constraints
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Fri, 23 Apr 2021 20:13:01 +0000 (13:13 -0700)
committerJaroslav Kysela <perex@perex.cz>
Tue, 25 May 2021 16:26:51 +0000 (18:26 +0200)
commit7bf31094e299b3ef4e897c18e891e6546ee2e0c6
treed0e355b1362c14592d2f86e8524d59297a899e1d
parent1422c09afdd79d8b1253707c7fb67256f579c408
topology: pre-process-class: Add functions to check attribute constraints

Add helper functions to check if an attribute is
mandatory, immutable or unique in the class definition.
ex: for a host widget component, these are defined
as follows:

attributes {
#
# host objects instantiated within the same alsaconf node must have unique
# direction attribute
#
unique "direction"
mandatory [
"type"
"stream_name"
]
immutable [
"uuid"
]
}

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
topology/pre-process-class.c
topology/pre-processor.h