[pulseaudio-discuss] [PATCH] describe proplist return values and clarification
gmane at colin.guthr.ie
Mon Dec 12 15:16:07 PST 2011
'Twas brillig, and Peter Meerwald at 12/12/11 12:44 did gyre and gimble:
> From: Peter Meerwald <p.meerwald at bct-electronic.com>
> ATTENTION: pa_proplist_unset() and pa_proplist_contains() have unconventional
> return codes (-2/-1/0) and -1/0/1, resp.); this aims to document the current
> behaviour, however, it might as well be a bug...
As mentioned in previous replies, this ins't unconventional. 0 and 1 are
successful return values whereas all errors result in a negative return
Therefore I'm not sure it's worth being totally explicit here with the
exact return values and the error conditions.
Some of the comment changes in this patch are valid even considering my
reservations on the above so feel free to resubmit this with just these
If we decide (as a result of the other thread) to fully document all
error return values then we can revisit this patch in it's entirety.
Tribalogic Limited http://www.tribalogic.net/
Mageia Contributor http://www.mageia.org/
PulseAudio Hacker http://www.pulseaudio.org/
Trac Hacker http://trac.edgewall.org/
More information about the pulseaudio-discuss