summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/dllist.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common/dllist.h b/src/common/dllist.h
index 5941f64..3feef5c 100644
--- a/src/common/dllist.h
+++ b/src/common/dllist.h
@@ -100,6 +100,15 @@ void __dl_list_splice(dl_list_item *, dl_list_head);
} \
while(0)
+#define dl_list_push dl_list_add_tail
+
+#define dl_list_pop(head, type, member) \
+ ({ \
+ type *_result = *head; \
+ dl_list_del(_result, head, type, member); \
+ _result; \
+ })
+
#define dl_list_splice_before(pos, head1, head2, type, member) \
do \
{ \