From 51f50b8c6425684214e58a0e5ab2515b624feaad Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Tue, 15 Nov 2011 13:48:41 -0500 Subject: util: Add wl_list_insert_list() --- src/wayland-util.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/wayland-util.c') diff --git a/src/wayland-util.c b/src/wayland-util.c index 0dae01b..9eb3d59 100644 --- a/src/wayland-util.c +++ b/src/wayland-util.c @@ -70,6 +70,15 @@ wl_list_empty(struct wl_list *list) return list->next == list; } +WL_EXPORT void +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_EXPORT void wl_array_init(struct wl_array *array) { -- cgit v1.2.3