]> git.alsa-project.org Git - alsa-lib.git/commitdiff
topology: add snd_tplg_version() function
authorJaroslav Kysela <perex@perex.cz>
Fri, 20 Dec 2019 20:28:30 +0000 (21:28 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 3 Jan 2020 22:38:08 +0000 (23:38 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
include/topology.h
src/topology/parser.c

index 63c13a9885e9d860953ab0bcb3a88859a373ce6c..37bced1a4434cbdcab29aae9d997d21e43bf3d87 100644 (file)
@@ -775,6 +775,12 @@ enum snd_tplg_type {
 #define SND_TPLG_CREATE_VERBOSE                (1<<0)  /*!< Verbose output */
 #define SND_TPLG_CREATE_DAPM_NOSORT    (1<<1)  /*!< Do not sort DAPM objects by index */
 
+/**
+ * \brief Return the version of the topology library.
+ * \return A static string with the version number.
+ */
+const char *snd_tplg_version(void);
+
 /**
  * \brief Create a new topology parser instance.
  * \return New topology parser instance
index 8f810f751533dfaf2cea1e193e5b73d8d290312e..1eaa24bd42f55a2f75e298a63dce59c421fb23a2 100644 (file)
@@ -503,3 +503,8 @@ void snd_tplg_free(snd_tplg_t *tplg)
 
        free(tplg);
 }
+
+const char *snd_tplg_version(void)
+{
+       return SND_LIB_VERSION_STR;
+}