logind: include "self" object links in dbus introspection

Makes "busctl introspect" a lot more fun.
This commit is contained in:
Lennart Poettering
2015-01-09 01:44:40 +01:00
parent 86e1f46f92
commit b298e98413
3 changed files with 12 additions and 0 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;