: snd_mixer_handle_events() documentation doesn't explain the return value correctly
The following issue has been SUBMITTED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1932>
======================================================================
Reported By: tilman
Assigned To:
======================================================================
Project: ALSA - lib Issue ID: 1932 Category: 2_mixer Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 03-16-2006 23:05 CET Last Modified: 03-16-2006 23:05 CET
======================================================================
Summary: snd_mixer_handle_events() documentation doesn't
explain the return value correctly
Description:
The docs for snd_mixer_handle_events() say the return value is:
"0 otherwise a negative error code on failure"
which suggests that 0 is the only valid return value that represents success.
In fact, the function returns the number of mixer events that occurred on success, which makes any return value >=0 represent success.
I suggest to apply the attached patch to actually document the return value correctly (applies to CVS HEAD).
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
03-16-06 23:05 tilman New Issue
03-16-06 23:05 tilman File Added:
alsalib-snd_mixer_handle_events_documentation.diff
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642