From c9a00f5a3bccf8b43e0d7672185da8df5ff0fdfa Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Thu, 15 Oct 2020 15:03:49 +0200 Subject: oomd: add names to dbus parameters and implement --bus-introspection --- src/oom/oomd-manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/oom/oomd-manager.c') diff --git a/src/oom/oomd-manager.c b/src/oom/oomd-manager.c index 49b57a86a4..9eb8ab9f5a 100644 --- a/src/oom/oomd-manager.c +++ b/src/oom/oomd-manager.c @@ -455,9 +455,9 @@ static int manager_connect_bus(Manager *m) { if (r < 0) return log_error_errno(r, "Failed to connect to bus: %m"); - r = sd_bus_add_object_vtable(m->bus, NULL, "/org/freedesktop/oom1", "org.freedesktop.oom1.Manager", manager_vtable, m); + r = bus_add_implementation(m->bus, &manager_object, m); if (r < 0) - return log_error_errno(r, "Failed to add manager object vtable: %m"); + return r; r = bus_log_control_api_register(m->bus); if (r < 0) -- cgit v1.2.3