From: Takashi Iwai Date: Wed, 25 Jul 2001 17:33:34 +0000 (+0000) Subject: Added snd_seq_system_info_get_cur_clients/queues. X-Git-Tag: v1.0.3~720 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=78156e8f16a80ff5add85d9dfc53374d681ffa43;p=alsa-lib.git Added snd_seq_system_info_get_cur_clients/queues. --- diff --git a/include/seq.h b/include/seq.h index 59498059..75736b7e 100644 --- a/include/seq.h +++ b/include/seq.h @@ -80,6 +80,8 @@ int snd_seq_system_info_get_queues(const snd_seq_system_info_t *info); int snd_seq_system_info_get_clients(const snd_seq_system_info_t *info); int snd_seq_system_info_get_ports(const snd_seq_system_info_t *info); int snd_seq_system_info_get_channels(const snd_seq_system_info_t *info); +int snd_seq_system_info_get_cur_clients(const snd_seq_system_info_t *info); +int snd_seq_system_info_get_cur_queues(const snd_seq_system_info_t *info); int snd_seq_system_info(snd_seq_t *handle, snd_seq_system_info_t *info); diff --git a/src/seq/seq.c b/src/seq/seq.c index 3dad6600..1596b32f 100644 --- a/src/seq/seq.c +++ b/src/seq/seq.c @@ -500,6 +500,27 @@ int snd_seq_system_info_get_channels(const snd_seq_system_info_t *info) return info->channels; } +/** + * \brief Get the current number of clients + * \param info #snd_seq_system_info_t container + * \return current number of clients + */ +int snd_seq_system_info_get_cur_clients(const snd_seq_system_info_t *info) +{ + assert(info); + return info->cur_clients; +} + +/** + * \brief Get the current number of queues + * \param info #snd_seq_system_info_t container + * \return current number of queues + */ +int snd_seq_system_info_get_cur_queues(const snd_seq_system_info_t *info) +{ + assert(info); + return info->cur_queues; +} /** * \brief obtain the sequencer system information