chiark / gitweb /
logind: include "self" object links in dbus introspection
authorLennart Poettering <lennart@poettering.net>
Fri, 9 Jan 2015 00:44:40 +0000 (01:44 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 9 Jan 2015 17:35:36 +0000 (18:35 +0100)
Makes "busctl introspect" a lot more fun.

src/login/logind-seat-dbus.c
src/login/logind-session-dbus.c
src/login/logind-user-dbus.c

index a99d008..fb32b13 100644 (file)
@@ -404,6 +404,10 @@ int seat_node_enumerator(sd_bus *bus, const char *path, void *userdata, char ***
                         return r;
         }
 
                         return r;
         }
 
+        r = strv_extend(&l, "/org/freedesktop/login1/seat/self");
+        if (r < 0)
+                return r;
+
         *nodes = l;
         l = NULL;
 
         *nodes = l;
         l = NULL;
 
index 4e75d5b..a6b15f2 100644 (file)
@@ -563,6 +563,10 @@ int session_node_enumerator(sd_bus *bus, const char *path, void *userdata, char
                         return r;
         }
 
                         return r;
         }
 
+        r = strv_extend(&l, "/org/freedesktop/login1/session/self");
+        if (r < 0)
+                return r;
+
         *nodes = l;
         l = NULL;
 
         *nodes = l;
         l = NULL;
 
index 812a19f..e811b37 100644 (file)
@@ -319,6 +319,10 @@ int user_node_enumerator(sd_bus *bus, const char *path, void *userdata, char ***
                         return r;
         }
 
                         return r;
         }
 
+        r = strv_extend(&l, "/org/freedesktop/login1/user/self");
+        if (r < 0)
+                return r;
+
         *nodes = l;
         l = NULL;
 
         *nodes = l;
         l = NULL;