mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
ucm: add snd_use_case_verb_list() inline function
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
7b259bc00e
commit
e1b4bd6c89
1 changed files with 12 additions and 1 deletions
|
|
@ -318,7 +318,6 @@ int snd_use_case_mgr_reset(snd_use_case_mgr_t *uc_mgr);
|
|||
|
||||
/**
|
||||
* \brief Obtain a list of cards
|
||||
* \param uc_mgr Use case manager (may be NULL - card list)
|
||||
* \param list Returned allocated list
|
||||
* \return Number of list entries if success, otherwise a negative error code
|
||||
*/
|
||||
|
|
@ -327,6 +326,18 @@ static inline int snd_use_case_card_list(const char **list[])
|
|||
return snd_use_case_get_list(NULL, NULL, list);
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Obtain a list of verbs
|
||||
* \param uc_mgr Use case manager
|
||||
* \param list Returned list of verbs
|
||||
* \return Number of list entries if success, otherwise a negative error code
|
||||
*/
|
||||
static inline int snd_use_case_verb_list(snd_use_case_mgr_t *uc_mgr,
|
||||
const char **list[])
|
||||
{
|
||||
return snd_use_case_get_list(uc_mgr, "_verbs", list);
|
||||
}
|
||||
|
||||
/**
|
||||
* \}
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue