diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-06-27 23:21:21 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-06-27 23:21:21 +0200 |
commit | 74c964d369b11bbf465c140c3f2dfcde2c7f5977 (patch) | |
tree | 7d4cfc98a04c2d9a0170626fd8bb3b4c40439447 /src/core/dbus-socket.c | |
parent | 7041efe9600e569da6089c36d00fa3ff58e33178 (diff) |
dbus: hookup runtime property changes for mouns, services, sockets, swaps too
Diffstat (limited to 'src/core/dbus-socket.c')
-rw-r--r-- | src/core/dbus-socket.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/core/dbus-socket.c b/src/core/dbus-socket.c index 7ec4f33924..7ef55ec711 100644 --- a/src/core/dbus-socket.c +++ b/src/core/dbus-socket.c @@ -213,3 +213,31 @@ DBusHandlerResult bus_socket_message_handler(Unit *u, DBusConnection *c, DBusMes return bus_default_message_handler(c, message, INTROSPECTION, INTERFACES_LIST, bps); } + +int bus_socket_set_property( + Unit *u, + const char *name, + DBusMessageIter *i, + UnitSetPropertiesMode mode, + DBusError *error) { + + Socket *s = SOCKET(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_socket_commit_properties(Unit *u) { + assert(u); + + unit_realize_cgroup(u); + return 0; +} |