mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 15:10:33 +00:00
logind: include "self" object links in dbus introspection
Makes "busctl introspect" a lot more fun.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user