diff options
Diffstat (limited to 'isp/list.h')
-rw-r--r-- | isp/list.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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; |