summaryrefslogtreecommitdiffstats
path: root/src/dlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dlist.h')
-rw-r--r--src/dlist.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dlist.h b/src/dlist.h
index 98b7fd3..d689ad3 100644
--- a/src/dlist.h
+++ b/src/dlist.h
@@ -40,6 +40,10 @@ struct fastd_dlist_head {
};
+static inline bool fastd_dlist_linked(fastd_dlist_head_t *elem) {
+ return elem->prev;
+}
+
static inline void fastd_dlist_insert(fastd_dlist_head_t *list, fastd_dlist_head_t *elem) {
elem->prev = list;
elem->next = list->next;