summaryrefslogtreecommitdiff
path: root/isp
diff options
context:
space:
mode:
Diffstat (limited to 'isp')
-rw-r--r--isp/list.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/isp/list.h b/isp/list.h
index 081e2c4..e58d3fe 100644
--- a/isp/list.h
+++ b/isp/list.h
@@ -36,6 +36,11 @@ static inline void list_init(struct list_entry *list)
list->prev = list;
}
+static inline int list_empty(struct list_entry *list)
+{
+ return list->next == list;
+}
+
static inline void list_append(struct list_entry *entry, struct list_entry *list)
{
entry->next = list;