chiark / gitweb /
core: add new "flush" job mode to cancel all other jobs when queuing a new job
[elogind.git] / src / core / job.c
index 9cd6ce24b8ff13d86ed8cfa086f7f31af2f8ffce..557917a70b0dce3e42ce08ac594acfc91376fdd5 100644 (file)
@@ -1107,7 +1107,8 @@ static const char* const job_mode_table[_JOB_MODE_MAX] = {
         [JOB_REPLACE_IRREVERSIBLY] = "replace-irreversibly",
         [JOB_ISOLATE] = "isolate",
         [JOB_IGNORE_DEPENDENCIES] = "ignore-dependencies",
-        [JOB_IGNORE_REQUIREMENTS] = "ignore-requirements"
+        [JOB_IGNORE_REQUIREMENTS] = "ignore-requirements",
+        [JOB_FLUSH] = "flush",
 };
 
 DEFINE_STRING_TABLE_LOOKUP(job_mode, JobMode);