chiark / gitweb /
dbus: fix dbus event loop hookup
[elogind.git] / unit.c
diff --git a/unit.c b/unit.c
index 93c0d8d61a29bb442550d419e2331cbb5afb12c1..e6331b44d3961587734676bf042de17b2fea7ff8 100644 (file)
--- a/unit.c
+++ b/unit.c
@@ -1439,3 +1439,11 @@ static const char* const unit_dependency_table[_UNIT_DEPENDENCY_MAX] = {
 };
 
 DEFINE_STRING_TABLE_LOOKUP(unit_dependency, UnitDependency);
+
+static const char* const kill_mode_table[_KILL_MODE_MAX] = {
+        [KILL_PROCESS] = "process",
+        [KILL_PROCESS_GROUP] = "process-group",
+        [KILL_CONTROL_GROUP] = "control-group"
+};
+
+DEFINE_STRING_TABLE_LOOKUP(kill_mode, KillMode);