core: move unit_status_emit_starting_stopping_reloading() and related calls to job.c
authorLennart Poettering <lennart@poettering.net>
Tue, 13 Nov 2018 18:57:43 +0000 (19:57 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 16 Nov 2018 14:22:48 +0000 (15:22 +0100)
commit33a3fdd9781329379f74e11a7a2707816aad8c61
treeba071beede1837900e5ceff2e66f893f90378746
parentf8c34706f51f5c66d33d6265b4d939d22cf90154
core: move unit_status_emit_starting_stopping_reloading() and related calls to job.c

This call is only used by job.c and very specific to job handling.
Moreover the very similar logic of job_emit_status_message() is already
in job.c.

Hence, let's clean this up, and move both sets of functions to job.c,
and rename them a bit so that they express precisely what they do:

1. unit_status_emit_starting_stopping_reloading() →
   job_emit_begin_status_message()
2. job_emit_status_message() → job_emit_done_status_message()

The first call is after all what we call when we begin with the
execution of a job, and the second call what we call when we are done
wiht it.

Just some moving and renaming, not other changes, and hence no change in
behaviour.
src/core/job.c
src/core/unit.c
src/core/unit.h