chiark / gitweb /
consolidate TODO
[elogind.git] / src / list.h
index 3cf18f15473b74ffdc94499f3da2d5a5990bf800..2bec8c9e738f252332ca3b69b800bc21f704f461 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)