Added snd_asoundlib_version()

This commit is contained in:
Jaroslav Kysela 2004-04-19 15:12:32 +00:00
parent ba4ddd169f
commit a66204cd12
3 changed files with 12 additions and 0 deletions

View file

@ -41,6 +41,8 @@ extern "C" {
* \{
*/
const char *snd_asoundlib_version(void);
#ifndef ATTRIBUTE_UNUSED
/** do not print warning (gcc) when function parameter is not used */
#define ATTRIBUTE_UNUSED __attribute__ ((__unused__))

View file

@ -156,6 +156,7 @@ ALSA_1.0.4 {
ALSA_1.0.5 {
global:
snd_asoundlib_version;
snd_timer_params_set_early_event;
snd_timer_params_get_early_event;
} ALSA_1.0.4;

View file

@ -102,3 +102,12 @@ int snd_lib_error_set_handler(snd_lib_error_handler_t handler)
snd_lib_error = handler == NULL ? snd_lib_error_default : handler;
return 0;
}
/**
* \brief Returns the ALSA sound library version in ASCII format
* \return The ASCII description of the used ALSA sound library.
*/
const char *snd_asoundlib_version(void)
{
return SND_LIB_VERSION_STR;
}