execude: include RuntimeScope field in ExecParameters
authorLennart Poettering <lennart@poettering.net>
Mon, 26 Jun 2023 20:34:25 +0000 (22:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 28 Jun 2023 19:59:02 +0000 (21:59 +0200)
commit170d978b2f85aa0ea5c994d7821dfbf6870cffb9
treedba48beb42284da56dc997d8713b128558646dc6
parent17f06e97e4d07448b579086b2e0217f84236d634
execude: include RuntimeScope field in ExecParameters

Let's decouple execute.c a bit from the Manager object, let's pass the
runtime scope (i.e. the enum that discern invocation for user or system
context) as part of ExecParameters. This makes the scope available in
various functions without having to pass the Manager object in.
src/core/execute.c
src/core/execute.h
src/core/unit.c