From ac9f55ed407f2994e22422f39456a2f68027c39a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 21 Apr 2020 10:34:05 +0200 Subject: tree-wide: implement new log control API dbus interface in all our daemons --- src/import/importd.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/import') diff --git a/src/import/importd.c b/src/import/importd.c index c4e8920169..8977ebd835 100644 --- a/src/import/importd.c +++ b/src/import/importd.c @@ -7,6 +7,7 @@ #include "alloc-util.h" #include "bus-common-errors.h" +#include "bus-log-control-api.h" #include "bus-polkit.h" #include "def.h" #include "fd-util.h" @@ -1308,6 +1309,10 @@ static int manager_add_bus_objects(Manager *m) { if (r < 0) return log_error_errno(r, "Failed to add transfer enumerator: %m"); + r = bus_log_control_api_register(m->bus); + if (r < 0) + return r; + r = sd_bus_request_name_async(m->bus, NULL, "org.freedesktop.import1", 0, NULL, NULL); if (r < 0) return log_error_errno(r, "Failed to request name: %m"); -- cgit v1.2.3