diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-10-15 15:03:49 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-10-15 15:03:49 +0200 |
commit | c9a00f5a3bccf8b43e0d7672185da8df5ff0fdfa (patch) | |
tree | 963c6bab23cc4b5c5f04330029eef312c1cdf94f /src/oom/oomd-manager.c | |
parent | oomd: check number of arguments, add --version, fix indentation (diff) | |
download | systemd-c9a00f5a3bccf8b43e0d7672185da8df5ff0fdfa.tar.xz systemd-c9a00f5a3bccf8b43e0d7672185da8df5ff0fdfa.zip |
oomd: add names to dbus parameters and implement --bus-introspection
Diffstat (limited to 'src/oom/oomd-manager.c')
-rw-r--r-- | src/oom/oomd-manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |