]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/test/test-cgroup.c
util-lib: move some functions from basic/cgroup-util to shared/cgroup-setup
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 1 Aug 2019 11:14:45 +0000 (13:14 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 16 Sep 2019 16:08:00 +0000 (18:08 +0200)
commitfdb3decaa7ca791906f87dafc9d641c4cee4ec26
treee318dbff0cab00412c09630b1378ff16297c98a2
parent55fced5a1983cbe03197d782acdd673c035ba0ee
util-lib: move some functions from basic/cgroup-util to shared/cgroup-setup

This way less stuff needs to be in basic. Initially, I wanted to move all the
parts of cgroup-utils.[ch] that depend on efivars.[ch] to shared, because
efivars.[ch] is in shared/. Later on, I decide to split efivars.[ch], so the
move done in this patch is not necessary anymore. Nevertheless, it is still
valid on its own. If at some point we want to expose libbasic, it is better to
to not have stuff that belong in libshared there.
19 files changed:
src/basic/cgroup-util.c
src/basic/cgroup-util.h
src/core/cgroup.c
src/core/execute.c
src/core/load-fragment.c
src/core/mount-setup.c
src/core/unit.c
src/login/pam_systemd.c
src/nspawn/nspawn-cgroup.c
src/shared/bus-unit-util.c
src/shared/cgroup-setup.c [new file with mode: 0644]
src/shared/cgroup-setup.h [new file with mode: 0644]
src/shared/meson.build
src/shutdown/shutdown.c
src/test/meson.build
src/test/test-cgroup-setup.c [new file with mode: 0644]
src/test/test-cgroup-util.c
src/test/test-cgroup.c
src/test/test-helper.c