systemd: split "nm-sd.h" out of "nm-sd-adapt.h"
authorThomas Haller <thaller@redhat.com>
Fri, 11 Mar 2016 09:25:40 +0000 (10:25 +0100)
committerThomas Haller <thaller@redhat.com>
Fri, 11 Mar 2016 10:02:12 +0000 (11:02 +0100)
commitaed3c810b3681fa38000487f519660a338bc063e
tree080613a6399809f22c40f07dff09e0ae1dadc81c
parente1e428b21e56cad3c50419e3fe2806dbbb21c976
systemd: split "nm-sd.h" out of "nm-sd-adapt.h"

Now we have:

"nm-sd.h" is a header file of NetworkManager with utilities
related to systemd. It can be used anywhere freely.

Also, systemd headers that are considered public API (like
"sd-event.h") can be used without restrictions.

When compiling the systemd sources, we always must include
"nm-sd-adapt.h" as first. Similarly, systemd headers must
not include "nm-sd-adapt.h", because they are either public
(in which case the adapter is not needed) or they are internal
(in which case they are themself included via a systemd source).

Sometimes, we must internal API (like "dhcp-lease-internal.h").
In this case, we also must include "nm-sd-adapt.h".
src/Makefile.am
src/devices/nm-lldp-listener.c
src/devices/tests/test-lldp.c
src/dhcp-manager/nm-dhcp-systemd.c
src/main.c
src/nm-iface-helper.c
src/systemd/nm-sd-adapt.c
src/systemd/nm-sd-adapt.h
src/systemd/nm-sd.c [new file with mode: 0644]
src/systemd/nm-sd.h [new file with mode: 0644]
src/tests/test-systemd.c