udev: String substitutions can be done in ENV, too
[systemd_ALT.git] / src / basic / runtime-scope.c
blob3d653d6cefc572f2cb0c3b2f8614505d5d34ff50
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
3 #include "runtime-scope.h"
4 #include "string-table.h"
6 static const char* const runtime_scope_table[_RUNTIME_SCOPE_MAX] = {
7 [RUNTIME_SCOPE_SYSTEM] = "system",
8 [RUNTIME_SCOPE_USER] = "user",
9 [RUNTIME_SCOPE_GLOBAL] = "global",
12 DEFINE_STRING_TABLE_LOOKUP(runtime_scope, RuntimeScope);
14 static const char* const runtime_scope_cmdline_option_table[_RUNTIME_SCOPE_MAX] = {
15 [RUNTIME_SCOPE_SYSTEM] = "--system",
16 [RUNTIME_SCOPE_USER] = "--user",
17 [RUNTIME_SCOPE_GLOBAL] = "--global",
20 DEFINE_STRING_TABLE_LOOKUP_TO_STRING(runtime_scope_cmdline_option, RuntimeScope);