X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fmachine%2Fmachine-dbus.c;h=6e1b8f8186050311c354a4ca5304bd1340be06dd;hb=d07f7b9ef2835c290d6beadebd17d15308608eea;hp=424f98edd56cd81f6497c065930a78e71c79f3b2;hpb=1ee306e1248866617c96ed9f4263f375588ad838;p=elogind.git diff --git a/src/machine/machine-dbus.c b/src/machine/machine-dbus.c index 424f98edd..6e1b8f818 100644 --- a/src/machine/machine-dbus.c +++ b/src/machine/machine-dbus.c @@ -109,7 +109,7 @@ static int get_machine_for_path(Manager *m, const char *path, Machine **_machine if (!startswith(path, "/org/freedesktop/machine1/machine/")) return -EINVAL; - e = bus_path_unescape(path + 32); + e = bus_path_unescape(path + 34); if (!e) return -ENOMEM; @@ -130,6 +130,7 @@ static const BusProperty bus_machine_machine_properties[] = { { "TimestampMonotonic", bus_property_append_usec, "t", offsetof(Machine, timestamp.monotonic) }, { "Service", bus_property_append_string, "s", offsetof(Machine, service), true }, { "Scope", bus_property_append_string, "s", offsetof(Machine, scope), true }, + { "Leader", bus_property_append_pid, "u", offsetof(Machine, leader) }, { "Class", bus_machine_append_class, "s", offsetof(Machine, class) }, { "State", bus_machine_append_state, "s", 0 }, { "RootDirectory", bus_property_append_string, "s", offsetof(Machine, root_directory), true },