mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
topology: add snd_tplg_version() function
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
b336aea507
commit
0793ef064a
2 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue