summaryrefslogtreecommitdiff
path: root/topology/pre-processor.h
diff options
context:
space:
mode:
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>2021-04-23 13:36:48 -0700
committerJaroslav Kysela <perex@perex.cz>2021-05-25 18:26:51 +0200
commitd8e9466e594dd62779bbc19eb2a379c79413f0d9 (patch)
tree27df08be281f7cccaed9b37fe8ecfa2d65572e0e /topology/pre-processor.h
parent0b0c16d4a7899c09126c5f12836a3c90ecebc099 (diff)
downloadalsa-utils-d8e9466e594dd62779bbc19eb2a379c79413f0d9.tar.gz
topology: pre-process-class: function to get attribute type
Add a helper function to get attribute type from the attribute definition and convert them to SND_CONFIG_TYPE_* values. When no type if provided for an attribute, type defaults to integer. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'topology/pre-processor.h')
-rw-r--r--topology/pre-processor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/topology/pre-processor.h b/topology/pre-processor.h
index 04e1cfc..17a7dd5 100644
--- a/topology/pre-processor.h
+++ b/topology/pre-processor.h
@@ -37,11 +37,12 @@ bool tplg_class_is_attribute_immutable(const char *attr, snd_config_t *class_cfg
bool tplg_class_is_attribute_unique(const char *attr, snd_config_t *class_cfg);
const char *tplg_class_get_unique_attribute_name(struct tplg_pre_processor *tplg_pp,
snd_config_t *class);
+snd_config_type_t tplg_class_get_attribute_type(struct tplg_pre_processor *tplg_pp,
+ snd_config_t *attr);
/* config helpers */
snd_config_t *tplg_find_config(snd_config_t *config, const char *name);
int tplg_config_make_add(snd_config_t **config, const char *id, snd_config_type_t type,
snd_config_t *parent);
-
char *tplg_snprintf(char *fmt, ...);
#endif