]> git.ipfire.org Git - thirdparty/systemd.git/commit
dbus: add infrastructure for changing multiple properties at once on units and hook...
authorLennart Poettering <lennart@poettering.net>
Thu, 27 Jun 2013 19:14:56 +0000 (21:14 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 27 Jun 2013 19:14:56 +0000 (21:14 +0200)
commit8e2af478402414f060bbc16e1b4bbe7de1779c13
tree2548caac0cda5efadd459e3a4e3744449d57a181
parentaae72d6fa0910891aa446ec43c548512987d453a
dbus: add infrastructure for changing multiple properties at once on units and hook some cgroup attributes up to it

This introduces two bus calls to make runtime changes to selected bus
properties, optionally with persistence.

This currently hooks this up only for three cgroup atributes, but this
brings the infrastructure to add more changable attributes.

This allows setting multiple attributes at once, and takes an array
rather than a dictionary of properties, in order to implement simple
resetting of lists using the same approach as when they are sourced from
unit files. This means, that list properties are appended to by this
call, unless they are first reset via assigning the empty list.
12 files changed:
TODO
src/core/dbus-cgroup.c
src/core/dbus-cgroup.h
src/core/dbus-manager.c
src/core/dbus-slice.c
src/core/dbus-slice.h
src/core/dbus-unit.c
src/core/dbus-unit.h
src/core/slice.c
src/core/unit.c
src/core/unit.h
src/systemctl/systemctl.c