[systemd-devel] [PATCH] sd-bus: the bus returned should be the first arg

Kay Sievers kay at vrfy.org
Tue Feb 18 17:57:22 PST 2014


On Wed, Feb 19, 2014 at 2:54 AM, Zbigniew Jędrzejewski-Szmek
<zbyszek at in.waw.pl> wrote:
> On Tue, Feb 18, 2014 at 07:11:08PM +0100, Jason A. Donenfeld wrote:

> I think Lennart meant a change the other way around, since the new policy is
> to have the return value as the last argument. But sd_j_* functions are older
> and do not respect this rule. But changing them would require a break of the
> API, which, to me, is not worth it.

Additional parameters should be at the end, to allow varargs.
Returning the new object as the last parameter is not a good rule for
that reason.

Kay


More information about the systemd-devel mailing list