chiark / gitweb /
make sure impact of transactions is minimized
[elogind.git] / job.c
diff --git a/job.c b/job.c
index 6241f203f94964e14ffcac3d651fcfccc82ce8a1..d22ce19ee13490604d63fdb78e4cfb952a18061b 100644 (file)
--- a/job.c
+++ b/job.c
@@ -264,3 +264,12 @@ bool job_type_is_superset(JobType a, JobType b) {
 
         }
 }
+
+bool job_type_is_conflicting(JobType a, JobType b) {
+
+        /* Checks whether two types are "conflicting" */
+
+        return
+                (a == JOB_STOP && b != JOB_STOP) ||
+                (b == JOB_STOP && a != JOB_STOP);
+}