]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: add UNIT_GET_SLICE() helper
authorLennart Poettering <lennart@poettering.net>
Mon, 26 Apr 2021 16:14:07 +0000 (18:14 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 25 May 2021 14:02:00 +0000 (16:02 +0200)
commit12f64221b0af5a9380a840ebeb897c2cd6cff955
tree21a5e28261495ac0680bc46b680b5cc5fc71ce2f
parent8ddba3f266a1deae3826a80e2d148909b7902020
core: add UNIT_GET_SLICE() helper

In a later commit we intend to move the slice logic to use proper
dependencies instead of a "UnitRef" object. This preparatory commit
drops direct use of the slice UnitRef object for a static inline
function UNIT_GET_SLICE() that is both easier to grok, and allows us to
easily replace its internal implementation later on.
src/core/bpf-firewall.c
src/core/cgroup.c
src/core/slice.c
src/core/unit-printf.c
src/core/unit.c
src/core/unit.h
src/test/test-cgroup-mask.c
src/test/test-cgroup-unit-default.c