git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

scenefx/include/util/array.h (394B)

 1 #ifndef UTIL_ARRAY_H
 2 #define UTIL_ARRAY_H
 3 
 4 #include <stdlib.h>
 5 #include <stdbool.h>
 6 #include <wayland-util.h>
 7 
 8 /**
 9  * Remove a chunk of memory of the specified size at the specified offset.
10  */
11 void array_remove_at(struct wl_array *arr, size_t offset, size_t size);
12 
13 /**
14  * Grow or shrink the array to fit the specifized size.
15  */
16 bool array_realloc(struct wl_array *arr, size_t size);
17 
18 #endif