topology: add snd_tplg_version() function

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2019-12-20 21:28:30 +01:00
parent b336aea507
commit 0793ef064a
2 changed files with 11 additions and 0 deletions

View file

@ -775,6 +775,12 @@ enum snd_tplg_type {
#define SND_TPLG_CREATE_VERBOSE (1<<0) /*!< Verbose output */ #define SND_TPLG_CREATE_VERBOSE (1<<0) /*!< Verbose output */
#define SND_TPLG_CREATE_DAPM_NOSORT (1<<1) /*!< Do not sort DAPM objects by index */ #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. * \brief Create a new topology parser instance.
* \return New topology parser instance * \return New topology parser instance

View file

@ -503,3 +503,8 @@ void snd_tplg_free(snd_tplg_t *tplg)
free(tplg); free(tplg);
} }
const char *snd_tplg_version(void)
{
return SND_LIB_VERSION_STR;
}