diff options
| author | Kristian Høgsberg <krh@bitplanet.net> | 2011-11-15 13:48:41 -0500 |
|---|---|---|
| committer | Kristian Høgsberg <krh@bitplanet.net> | 2011-11-15 13:48:41 -0500 |
| commit | 51f50b8c6425684214e58a0e5ab2515b624feaad (patch) | |
| tree | 56a70673adc1e8fd5d7b682f5d77c9805312d010 /src/wayland-util.c | |
| parent | hash: Improve double hashing (diff) | |
| download | wayland-51f50b8c6425684214e58a0e5ab2515b624feaad.tar wayland-51f50b8c6425684214e58a0e5ab2515b624feaad.tar.gz wayland-51f50b8c6425684214e58a0e5ab2515b624feaad.tar.bz2 wayland-51f50b8c6425684214e58a0e5ab2515b624feaad.tar.lz wayland-51f50b8c6425684214e58a0e5ab2515b624feaad.tar.xz wayland-51f50b8c6425684214e58a0e5ab2515b624feaad.tar.zst wayland-51f50b8c6425684214e58a0e5ab2515b624feaad.zip | |
util: Add wl_list_insert_list()
Diffstat (limited to 'src/wayland-util.c')
| -rw-r--r-- | src/wayland-util.c | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ -71,6 +71,15 @@ wl_list_empty(struct wl_list *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) { memset(array, 0, sizeof *array); |
