summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-01-09 01:44:40 +0100
committerLennart Poettering <lennart@poettering.net>2015-01-09 18:35:36 +0100
commitb298e98413a8bd112f0f7bd91a0dff3e7e931424 (patch)
tree02aa3f261b9617f3f72b4ef66327e0161ec02276 /src/login
parent86e1f46f92ff4c447ea32a6892ea394c6e6ef541 (diff)
logind: include "self" object links in dbus introspection
Makes "busctl introspect" a lot more fun.
Diffstat (limited to 'src/login')
-rw-r--r--src/login/logind-seat-dbus.c4
-rw-r--r--src/login/logind-session-dbus.c4
-rw-r--r--src/login/logind-user-dbus.c4
3 files changed, 12 insertions, 0 deletions
diff --git a/src/login/logind-seat-dbus.c b/src/login/logind-seat-dbus.c
index a99d0084ef..fb32b139fc 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 4e75d5b209..a6b15f28a0 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 812a19f83b..e811b37369 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;