Commit 51f50b8c authored by Kristian Høgsberg's avatar Kristian Høgsberg
Browse files

util: Add wl_list_insert_list()

parent 3175e91e
......@@ -70,6 +70,15 @@ wl_list_empty(struct wl_list *list)
return list->next == list;
wl_list_insert_list(struct wl_list *list, struct wl_list *other)
other->next->prev = list;
other->prev->next = list->next;
list->next->prev = other->prev;
list->next = other->next;
wl_array_init(struct wl_array *array)
......@@ -115,6 +115,7 @@ void wl_list_insert(struct wl_list *list, struct wl_list *elm);
void wl_list_remove(struct wl_list *elm);
int wl_list_length(struct wl_list *list);
int wl_list_empty(struct wl_list *list);
void wl_list_insert_list(struct wl_list *list, struct wl_list *other);
#define __container_of(ptr, sample, member) \
(void *)((char *)(ptr) - \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment