1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2
3 #include "dbus-cgroup.h"
4 #include "dbus-slice.h"
5 #include "slice.h"
6 #include "unit.h"
7
8 const sd_bus_vtable bus_slice_vtable[] = {
9 SD_BUS_VTABLE_START(0),
10 SD_BUS_VTABLE_END
11 };
12
bus_slice_set_property(Unit * u,const char * name,sd_bus_message * message,UnitWriteFlags flags,sd_bus_error * error)13 int bus_slice_set_property(
14 Unit *u,
15 const char *name,
16 sd_bus_message *message,
17 UnitWriteFlags flags,
18 sd_bus_error *error) {
19
20 Slice *s = SLICE(u);
21
22 assert(name);
23 assert(u);
24
25 return bus_cgroup_set_property(u, &s->cgroup_context, name, message, flags, error);
26 }
27
bus_slice_commit_properties(Unit * u)28 int bus_slice_commit_properties(Unit *u) {
29 assert(u);
30
31 unit_realize_cgroup(u);
32
33 return 0;
34 }
35