[pulseaudio-discuss] [PATCH 0/4] Error handling and its documentation in the public API

John Haxby jch at thehaxbys.co.uk
Mon Jan 2 03:47:06 PST 2012


On 1 Jan 2012, at 21:27, Peter Meerwald wrote:

> + * The PulseAudio API indicates error conditions by returning a negative
> + * integer value or a NULL pointer. On success, a positive integer value
> + * or a valid pointer is returned.

Without knowing anything of the API, my immediate question is "what about zero?"   Do you mean "On success, a non-negative integer value [...] is returned"?  Of course, having said what the failure condition is, you don't actually need to specify success; unless zero means neither success nor failure :)

jch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20120102/65872c8c/attachment.html>


More information about the pulseaudio-discuss mailing list