topology: add parser to the tplg_table

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2019-12-15 17:24:50 +01:00
parent 4f076f5b69
commit 4a0efdc873
3 changed files with 47 additions and 81 deletions

View file

@ -199,6 +199,8 @@ struct map_elem {
/* mapping table */
struct tplg_table {
const char *name;
const char *id;
const char *id2;
off_t loff;
size_t size;
int type;
@ -206,6 +208,7 @@ struct tplg_table {
unsigned build: 1;
unsigned enew: 1;
void (*free)(void *);
int (*parse)(snd_tplg_t *tplg, snd_config_t *cfg, void *priv);
};
extern struct tplg_table tplg_table[];