chiark / gitweb /
core: add new "flush" job mode to cancel all other jobs when queuing a new job
[elogind.git] / src / core / job.h
index 3f6357a054dc1cedfaaa22c106f571ad72b2c919..c23a38029d3932c23e1edf5426b10782f0c5d473 100644 (file)
@@ -84,6 +84,7 @@ enum JobMode {
         JOB_REPLACE,             /* Replace an existing conflicting job */
         JOB_REPLACE_IRREVERSIBLY,/* Like JOB_REPLACE + produce irreversible jobs */
         JOB_ISOLATE,             /* Start a unit, and stop all others */
+        JOB_FLUSH,               /* Flush out all other queued jobs when queing this one */
         JOB_IGNORE_DEPENDENCIES, /* Ignore both requirement and ordering dependencies */
         JOB_IGNORE_REQUIREMENTS, /* Ignore requirement dependencies */
         _JOB_MODE_MAX,