Systemd/src/libsystemd
Lennart Poettering 151b9b9662 api: in constructor function calls, always put the returned object pointer first (or second)
Previously the returned object of constructor functions where sometimes
returned as last, sometimes as first and sometimes as second parameter.
Let's clean this up a bit. Here are the new rules:

1. The object the new object is derived from is put first, if there is any

2. The object we are creating will be returned in the next arguments

3. This is followed by any additional arguments

Rationale:

For functions that operate on an object we always put that object first.
Constructors should probably not be too different in this regard. Also,
if the additional parameters might want to use varargs which suggests to
put them last.

Note that this new scheme only applies to constructor functions, not to
all other functions. We do give a lot of freedom for those.

Note that this commit only changes the order of the new functions we
added, for old ones we accept the wrong order and leave it like that.
2014-02-20 00:03:10 +01:00
..
sd-bus api: in constructor function calls, always put the returned object pointer first (or second) 2014-02-20 00:03:10 +01:00
sd-daemon build-sys: merge libsystemd-daemon into libsystemd 2014-02-19 01:09:19 +01:00
sd-event api: in constructor function calls, always put the returned object pointer first (or second) 2014-02-20 00:03:10 +01:00
sd-id128 sd-id128: use new dev_urandom() call 2014-02-19 17:53:50 +01:00
sd-resolve api: in constructor function calls, always put the returned object pointer first (or second) 2014-02-20 00:03:10 +01:00
sd-rtnl api: in constructor function calls, always put the returned object pointer first (or second) 2014-02-20 00:03:10 +01:00
sd-utf8 libsystemd: split up into subdirs 2014-01-21 14:41:35 +01:00
.gitignore build-sys: export experimental symbols only with --enable-kdbus 2014-02-19 20:53:18 +01:00
libsystemd.pc.in build-sys: update .pc.in files 2014-01-25 18:55:58 -05:00
libsystemd.sym.m4 build-sys: export experimental symbols only with --enable-kdbus 2014-02-19 20:53:18 +01:00
Makefile libsystemd-bus: rename to libsystemd 2014-01-13 18:54:19 +01:00