Systemd/src/locale
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
..
.gitignore login: move seat udev rules to login subdir 2012-01-22 18:32:13 +01:00
generate-kbd-model-map build-sys: invoke scripts with $PYTHON during build 2013-01-04 22:22:21 -05:00
kbd-model-map correct name of Tajik kbd layout in kbd-model-map 2013-12-10 05:16:46 -05:00
localectl.c api: in constructor function calls, always put the returned object pointer first (or second) 2014-02-20 00:03:10 +01:00
localed.c api: in constructor function calls, always put the returned object pointer first (or second) 2014-02-20 00:03:10 +01:00
Makefile build-sys: add stub makefiles to subdirs 2012-01-05 16:29:21 +01:00
org.freedesktop.locale1.conf relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00
org.freedesktop.locale1.policy.in polkit: add "imply" rules to a number of polkit actions 2012-12-31 21:24:26 +01:00
org.freedesktop.locale1.service relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00