mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
ucm: add @@LibraryVersion and @@SyntaxVersion variables
It may be useful to check the current syntax version (and maybe library version) when new features are added. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
7fbd47ce79
commit
12f6790910
2 changed files with 20 additions and 13 deletions
|
|
@ -1502,6 +1502,11 @@ const char *parse_open_variables(snd_use_case_mgr_t *uc_mgr, const char *name)
|
|||
|
||||
skip:
|
||||
snd_config_delete(cfg);
|
||||
|
||||
uc_mgr_set_variable(uc_mgr, "@@LibraryVersion", SND_LIB_VERSION_STR);
|
||||
snprintf(vname, sizeof(vname), "%d", SYNTAX_VERSION_MAX);
|
||||
uc_mgr_set_variable(uc_mgr, "@@SyntaxVersion", vname);
|
||||
|
||||
return end + 3;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue