Added snd_seq_system_info_get_cur_clients/queues.

This commit is contained in:
Takashi Iwai 2001-07-25 17:33:34 +00:00
parent 48c58ade1d
commit 78156e8f16
2 changed files with 23 additions and 0 deletions

View file

@ -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);

View file

@ -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