Systemd/src/udev/net
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 udev: add network link configuration tool 2013-10-26 22:09:20 +02:00
ethtool-util.c net-util: call ioctl() only if necessary 2013-11-07 22:25:42 +01:00
ethtool-util.h conf-parser: distinguish between multiple sections with the same name 2013-11-25 19:35:44 +01:00
link-config-gperf.gperf udev: net_setup_link - don't use Description as Alias 2013-11-25 14:53:56 +01:00
link-config.c api: in constructor function calls, always put the returned object pointer first (or second) 2014-02-20 00:03:10 +01:00
link-config.h udev: net-config - allow interface names to be set from the hwdb 2014-02-19 23:29:51 +01:00
Makefile udev: add network link configuration tool 2013-10-26 22:09:20 +02:00