diff options
Diffstat (limited to 'src/core/dbus-swap.c')
-rw-r--r-- | src/core/dbus-swap.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/core/dbus-swap.c b/src/core/dbus-swap.c index 4ae1cd08e0..0248b4b391 100644 --- a/src/core/dbus-swap.c +++ b/src/core/dbus-swap.c @@ -115,3 +115,31 @@ DBusHandlerResult bus_swap_message_handler(Unit *u, DBusConnection *c, DBusMessa return bus_default_message_handler(c, message, INTROSPECTION, INTERFACES_LIST, bps); } + +int bus_swap_set_property( + Unit *u, + const char *name, + DBusMessageIter *i, + UnitSetPropertiesMode mode, + DBusError *error) { + + Swap *s = SWAP(u); + int r; + + assert(name); + assert(u); + assert(i); + + r = bus_cgroup_set_property(u, &s->cgroup_context, name, i, mode, error); + if (r != 0) + return r; + + return 0; +} + +int bus_swap_commit_properties(Unit *u) { + assert(u); + + unit_realize_cgroup(u); + return 0; +} |