From b298e98413a8bd112f0f7bd91a0dff3e7e931424 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 9 Jan 2015 01:44:40 +0100 Subject: [PATCH] logind: include "self" object links in dbus introspection Makes "busctl introspect" a lot more fun. --- src/login/logind-seat-dbus.c | 4 ++++ src/login/logind-session-dbus.c | 4 ++++ src/login/logind-user-dbus.c | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/src/login/logind-seat-dbus.c b/src/login/logind-seat-dbus.c index a99d008..fb32b13 100644 --- a/src/login/logind-seat-dbus.c +++ b/src/login/logind-seat-dbus.c @@ -404,6 +404,10 @@ int seat_node_enumerator(sd_bus *bus, const char *path, void *userdata, char *** return r; } + r = strv_extend(&l, "/org/freedesktop/login1/seat/self"); + if (r < 0) + return r; + *nodes = l; l = NULL; diff --git a/src/login/logind-session-dbus.c b/src/login/logind-session-dbus.c index 4e75d5b..a6b15f2 100644 --- a/src/login/logind-session-dbus.c +++ b/src/login/logind-session-dbus.c @@ -563,6 +563,10 @@ int session_node_enumerator(sd_bus *bus, const char *path, void *userdata, char return r; } + r = strv_extend(&l, "/org/freedesktop/login1/session/self"); + if (r < 0) + return r; + *nodes = l; l = NULL; diff --git a/src/login/logind-user-dbus.c b/src/login/logind-user-dbus.c index 812a19f..e811b37 100644 --- a/src/login/logind-user-dbus.c +++ b/src/login/logind-user-dbus.c @@ -319,6 +319,10 @@ int user_node_enumerator(sd_bus *bus, const char *path, void *userdata, char *** return r; } + r = strv_extend(&l, "/org/freedesktop/login1/user/self"); + if (r < 0) + return r; + *nodes = l; l = NULL; -- 2.7.4