diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2015-02-10 00:27:19 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-02-09 16:35:27 +0100 |
commit | 4e398ddfcf283b706f23d3759f737dc5dd05435f (patch) | |
tree | 697117aa90cc1c13dc0d146029b55a65ae890ecd | |
parent | 56499c30b772532e781836a28be8bb099e400ff1 (diff) | |
download | alsa-lib-4e398ddfcf283b706f23d3759f737dc5dd05435f.tar.gz |
control: complement comment for subscribe API
When minus value is given as a parameter, the API returns whether
the caller has already subscribed or not.
This commit adds a comment about this so as better documentation.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | src/control/control.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/control.c b/src/control/control.c index dd428a15..4a28cf6e 100644 --- a/src/control/control.c +++ b/src/control/control.c @@ -213,7 +213,7 @@ int snd_ctl_poll_descriptors_revents(snd_ctl_t *ctl, struct pollfd *pfds, unsign /** * \brief Ask to be informed about events (poll, #snd_async_add_ctl_handler, #snd_ctl_read) * \param ctl CTL handle - * \param subscribe 0 = unsubscribe, 1 = subscribe + * \param subscribe 0 = unsubscribe, 1 = subscribe, -1 = check subscribe or not * \return 0 on success otherwise a negative error code */ int snd_ctl_subscribe_events(snd_ctl_t *ctl, int subscribe) |