mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-16 08:56:42 -05:00
Added snd_asoundlib_version()
This commit is contained in:
parent
ba4ddd169f
commit
a66204cd12
3 changed files with 12 additions and 0 deletions
|
|
@ -41,6 +41,8 @@ extern "C" {
|
||||||
* \{
|
* \{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
const char *snd_asoundlib_version(void);
|
||||||
|
|
||||||
#ifndef ATTRIBUTE_UNUSED
|
#ifndef ATTRIBUTE_UNUSED
|
||||||
/** do not print warning (gcc) when function parameter is not used */
|
/** do not print warning (gcc) when function parameter is not used */
|
||||||
#define ATTRIBUTE_UNUSED __attribute__ ((__unused__))
|
#define ATTRIBUTE_UNUSED __attribute__ ((__unused__))
|
||||||
|
|
|
||||||
|
|
@ -156,6 +156,7 @@ ALSA_1.0.4 {
|
||||||
ALSA_1.0.5 {
|
ALSA_1.0.5 {
|
||||||
global:
|
global:
|
||||||
|
|
||||||
|
snd_asoundlib_version;
|
||||||
snd_timer_params_set_early_event;
|
snd_timer_params_set_early_event;
|
||||||
snd_timer_params_get_early_event;
|
snd_timer_params_get_early_event;
|
||||||
} ALSA_1.0.4;
|
} ALSA_1.0.4;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
snd_lib_error = handler == NULL ? snd_lib_error_default : handler;
|
||||||
return 0;
|
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;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue