core: rename ManagerExitCode → ManagerObjective
authorLennart Poettering <lennart@poettering.net>
Tue, 9 Oct 2018 13:42:19 +0000 (15:42 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 9 Oct 2018 17:43:43 +0000 (19:43 +0200)
commitaf41e5086d5ef78b033f639c63f957995eed9370
tree40c1da700d0f8385450688c6340dd44ae4b2ed6a
parent899987456c8a14865f29cb7c62d95eb34f9736cc
core: rename ManagerExitCode → ManagerObjective

"ExitCode" is a bit of a misnomer in two ways: it suggests this was
about the "exit code" concept that exit()/waitid() deal with, but really
isn't. Moreover, it's not event just about exiting either, but more
often about reloading/reexecing or rebooting. Let's hence pick a new
name for this that is a bit more correct.

I initially thought about naming this the "state", but that'd be a
misnomer too, as the value really encodes a "goal" more than a current
state. Also we already have the externally visible ManagerState.

No actual changes in behaviour, just the rename.
src/core/automount.c
src/core/dbus-manager.c
src/core/emergency-action.c
src/core/main.c
src/core/manager.c
src/core/manager.h