Skip to content

Commit

Permalink
rawmidi: ump - fix snd_ump_block_info_get_block_id double version
Browse files Browse the repository at this point in the history
The changes for 1.2.13 in Versions.in.in file matches also old
1.2.10 function snd_ump_block_info_get_block_id:

1 Removed function:

  [D] 'function void snd_ump_block_info_set_block_id(snd_ump_block_info_t*, unsigned int)'    {snd_ump_block_info_set_block_id@@ALSA_1.2.10}

Add 1.2.10 symbol back, but keep 1.2.13 symbol as default.

Closes: #422
Signed-off-by: Jaroslav Kysela <[email protected]>
  • Loading branch information
perexg committed Nov 25, 2024
1 parent 07cee0b commit 76d2d28
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/rawmidi/ump.c
Original file line number Diff line number Diff line change
Expand Up @@ -750,11 +750,20 @@ int snd_ump_block_info_get_device(const snd_ump_block_info_t *info)
* \param info pointer to a snd_ump_block_info_t structure
* \return ID number of the given UMP block
*/
#ifndef DOXYGEN
EXPORT_SYMBOL unsigned int INTERNAL(snd_ump_block_info_get_block_id)(const snd_ump_block_info_t *info)
#else
unsigned int snd_ump_block_info_get_block_id(const snd_ump_block_info_t *info)
#endif
{
return info->block_id;
}

#ifndef DOC_HIDDEN
use_symbol_version(__snd_ump_block_info_get_block_id, snd_ump_block_info_get_block_id, ALSA_1.2.10);
use_default_symbol_version(__snd_ump_block_info_get_block_id, snd_ump_block_info_get_block_id, ALSA_1.2.13);
#endif /* DOC_HIDDEN */

/**
* \brief get UMP block activeness
* \param info pointer to a snd_ump_block_info_t structure
Expand Down

0 comments on commit 76d2d28

Please sign in to comment.