mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Added snd_seq_system_info_get_cur_clients/queues.
This commit is contained in:
parent
48c58ade1d
commit
78156e8f16
2 changed files with 23 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue