From 70f4c95df58fad9fbf91179ce31011d86b679475 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 21 Mar 2025 11:26:28 +0100 Subject: [PATCH] ucm: remove @@LibraryVersion and @@SyntaxVersion variables It seems that version checking is more complicated: Syntax is one-way settlement from the configuration files. It cannot be conditional. The library version string is hard to check with regex. Signed-off-by: Jaroslav Kysela --- src/ucm/main.c | 5 ----- src/ucm/ucm_confdoc.h | 2 -- 2 files changed, 7 deletions(-) diff --git a/src/ucm/main.c b/src/ucm/main.c index 5a86b9cd..3a3c9c15 100644 --- a/src/ucm/main.c +++ b/src/ucm/main.c @@ -1502,11 +1502,6 @@ 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), "%04d", SYNTAX_VERSION_MAX); - uc_mgr_set_variable(uc_mgr, "@@SyntaxVersion", vname); - return end + 3; } diff --git a/src/ucm/ucm_confdoc.h b/src/ucm/ucm_confdoc.h index 025148f9..b8baeb5e 100644 --- a/src/ucm/ucm_confdoc.h +++ b/src/ucm/ucm_confdoc.h @@ -406,8 +406,6 @@ ${var:\} | UCM parser variable (set using a _Define_ block) ${eval:\} | Evaluate expression like *($var+2)/3* [**Syntax 5**] ${find-card:\} | Find a card - see _Find card substitution_ section ${find-device:\} | Find a device - see _Find device substitution_ section -@@LibraryVersion | e.g. "1.2.14" [**Syntax 8**] -@@SyntaxVersion | e.g. "0008" (decimal base - no hex) [**Syntax 8**] General note: If two dollars '$$' instead one dolar '$' are used for the substitution identification, the error is ignored (e.g. file does not -- 2.47.1