X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fdbus-unit.c;h=e95a5292773dde92113950a762c008d3162f361e;hb=e599ba01f564161966b3b8c93cc229daf847e807;hp=f33e8db8395a9352f54873681a539c2b5f2de368;hpb=d420282b28f50720e233ccb1c02547c562195653;p=elogind.git diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c index f33e8db83..e95a52927 100644 --- a/src/core/dbus-unit.c +++ b/src/core/dbus-unit.c @@ -480,18 +480,10 @@ int bus_unit_method_set_properties(sd_bus *bus, sd_bus_message *message, void *u if (r < 0) return r; - r = sd_bus_message_enter_container(message, 'a', "(sv)"); - if (r < 0) - return r; - r = bus_unit_set_properties(u, message, runtime ? UNIT_RUNTIME : UNIT_PERSISTENT, true, error); if (r < 0) return r; - r = sd_bus_message_exit_container(message); - if (r < 0) - return r; - return sd_bus_reply_method_return(message, NULL); } @@ -522,6 +514,7 @@ const sd_bus_vtable bus_unit_vtable[] = { SD_BUS_PROPERTY("TriggeredBy", "as", property_get_dependencies, offsetof(Unit, dependencies[UNIT_TRIGGERED_BY]), 0), SD_BUS_PROPERTY("PropagatesReloadTo", "as", property_get_dependencies, offsetof(Unit, dependencies[UNIT_PROPAGATES_RELOAD_TO]), 0), SD_BUS_PROPERTY("ReloadPropagatedFrom", "as", property_get_dependencies, offsetof(Unit, dependencies[UNIT_RELOAD_PROPAGATED_FROM]), 0), + SD_BUS_PROPERTY("JoinsNamespaceOf", "as", property_get_dependencies, offsetof(Unit, dependencies[UNIT_JOINS_NAMESPACE_OF]), 0), SD_BUS_PROPERTY("RequiresMountsFor", "as", NULL, offsetof(Unit, requires_mounts_for), 0), SD_BUS_PROPERTY("Documentation", "as", NULL, offsetof(Unit, documentation), 0), SD_BUS_PROPERTY("Description", "s", property_get_description, 0, 0),