mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Document strdup allocation in snd_card_get_name family
This was spotted by Jörg Höhle on the wine-patches ML. Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
ad2a0b3a56
commit
226a34ac09
1 changed files with 6 additions and 0 deletions
|
|
@ -166,6 +166,9 @@ int snd_card_get_index(const char *string)
|
|||
* \param card Card number
|
||||
* \param name Result - card name corresponding to card number
|
||||
* \result zero if success, otherwise a negative error code
|
||||
*
|
||||
* The value returned in name is allocated with strdup and should be
|
||||
* freed when no longer used.
|
||||
*/
|
||||
int snd_card_get_name(int card, char **name)
|
||||
{
|
||||
|
|
@ -193,6 +196,9 @@ int snd_card_get_name(int card, char **name)
|
|||
* \param card Card number
|
||||
* \param name Result - card long name corresponding to card number
|
||||
* \result zero if success, otherwise a negative error code
|
||||
*
|
||||
* The value returned in name is allocated with strdup and should be
|
||||
* freed when no longer used.
|
||||
*/
|
||||
int snd_card_get_longname(int card, char **name)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue