systemd: integrate sd-event into glib main loop

System Internals / NetworkManager - Thomas Haller [redhat.com] - 11 March 2016 02:28 UTC

We should not try to reimplement sd-event based on glib, instead we should hook sd-event into the glib mainloop.

a8bc65b systemd: integrate sd-event into glib main loop
configure.ac | 3 +
src/Makefile.am | 1 +
src/devices/tests/test-lldp.c | 4 +
src/main.c | 10 +-
src/nm-iface-helper.c | 6 +
src/systemd/nm-sd-adapt.c | 267 +++++++-----------------
src/systemd/nm-sd-adapt.h | 18 ++
src/systemd/src/libsystemd/sd-event/sd-event.c | 14 ++
src/systemd/src/libsystemd/sd-id128/sd-id128.c | 2 +-
src/tests/Makefile.am | 1 +
src/tests/test-systemd.c | 68 ++++++
11 files changed, 205 insertions(+), 189 deletions(-)

Upstream: cgit.freedesktop.org


  • Share