chiark / gitweb /
manager: always pull 'following' units into transaction
[elogind.git] / src / list.h
index 3cf18f1..2bec8c9 100644 (file)
                 }                                                       \
         } while(false)
 
+#define LIST_JUST_US(name,item)                                         \
+        (!(item)->name##_prev && !(item)->name##_next)                  \
+
 #define LIST_FOREACH(name,i,head)                                       \
         for ((i) = (head); (i); (i) = (i)->name##_next)