]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/analyze/analyze.c
core: remove ManagerRunningAs enum
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Feb 2016 20:24:23 +0000 (21:24 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2016 11:43:30 +0000 (13:43 +0200)
commit463d0d15690c7abe2172a23ae23c5547693dd71f
treedd3410341fefada4758bf935ee1db9f680620ebf
parentc51932be73e9cfc96e7bcaea1b31347133e1f3ed
core: remove ManagerRunningAs enum

Previously, we had two enums ManagerRunningAs and UnitFileScope, that were
mostly identical and converted from one to the other all the time. The latter
had one more value UNIT_FILE_GLOBAL however.

Let's simplify things, and remove ManagerRunningAs and replace it by
UnitFileScope everywhere, thus making the translation unnecessary. Introduce
two new macros MANAGER_IS_SYSTEM() and MANAGER_IS_USER() to simplify checking
if we are running in one or the user context.
36 files changed:
src/analyze/analyze-verify.c
src/analyze/analyze-verify.h
src/analyze/analyze.c
src/core/automount.c
src/core/busname.c
src/core/cgroup.c
src/core/dbus-manager.c
src/core/dbus.c
src/core/device.c
src/core/failure-action.c
src/core/job.c
src/core/load-fragment.c
src/core/main.c
src/core/manager.c
src/core/manager.h
src/core/mount.c
src/core/path.c
src/core/service.c
src/core/socket.c
src/core/swap.c
src/core/timer.c
src/core/unit-printf.c
src/core/unit.c
src/shared/install.c
src/shared/path-lookup.c
src/shared/path-lookup.h
src/systemctl/systemctl.c
src/sysv-generator/sysv-generator.c
src/test/test-cgroup-mask.c
src/test/test-engine.c
src/test/test-execute.c
src/test/test-path-lookup.c
src/test/test-path.c
src/test/test-sched-prio.c
src/test/test-unit-file.c
src/test/test-unit-name.c