From: Jaroslav Kysela Date: Tue, 11 Jan 2011 18:05:12 +0000 (+0100) Subject: ucm: add snd_use_case_verb_list() inline function X-Git-Tag: v1.0.24~6^2~1 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=e1b4bd6c89b194c54e892626727264e49464a3f1;p=alsa-lib.git ucm: add snd_use_case_verb_list() inline function Signed-off-by: Jaroslav Kysela --- diff --git a/include/use-case.h b/include/use-case.h index d5ca361b..f5776284 100644 --- a/include/use-case.h +++ b/include/use-case.h @@ -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); +} + /** * \} */