summaryrefslogtreecommitdiff
path: root/src/core/unit.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-08-28 17:36:39 +0200
committerLennart Poettering <lennart@poettering.net>2015-08-31 13:20:43 +0200
commitd79200e26ee39d4b451f95e876fc4595df51fe51 (patch)
tree189d23d4acbd47ad7ab0c4711c1eb087bf07f3be /src/core/unit.h
parent35b7ff80e29524cb01f881ca6d52c669970c88f1 (diff)
unit: unify how we assing slices to units
This adds a new call unit_set_slice(), and simplifies unit_add_default_slice(). THis should make our code a bit more robust and simpler.
Diffstat (limited to 'src/core/unit.h')
-rw-r--r--src/core/unit.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/unit.h b/src/core/unit.h
index 8da12356f8..bc26653247 100644
--- a/src/core/unit.h
+++ b/src/core/unit.h
@@ -494,7 +494,8 @@ int unit_load_fragment_and_dropin(Unit *u);
int unit_load_fragment_and_dropin_optional(Unit *u);
int unit_load(Unit *unit);
-int unit_add_default_slice(Unit *u, CGroupContext *c);
+int unit_set_slice(Unit *u, Unit *slice);
+int unit_set_default_slice(Unit *u);
const char *unit_description(Unit *u) _pure_;