ucm: add snd_use_case_verb_list() inline function

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2011-01-11 19:05:12 +01:00
parent 7b259bc00e
commit e1b4bd6c89

View file

@ -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);
}
/**
* \}
*/