summaryrefslogtreecommitdiff
path: root/isp/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'isp/list.h')
-rw-r--r--isp/list.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/isp/list.h b/isp/list.h
index e58d3fe..de6e383 100644
--- a/isp/list.h
+++ b/isp/list.h
@@ -57,6 +57,16 @@ static inline void list_prepend(struct list_entry *entry, struct list_entry *lis
list->next = entry;
}
+static inline void list_insert_after(struct list_entry *entry, struct list_entry *after)
+{
+ list_prepend(entry, after);
+}
+
+static inline void list_insert_before(struct list_entry *entry, struct list_entry *before)
+{
+ list_append(entry, before);
+}
+
static inline void list_remove(struct list_entry *entry)
{
entry->prev->next = entry->next;