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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux